How to Dictionary Length in Javascript?
length of dict js
// check length of dictionary
let dict = {a:1 , b:2 , c:3}
console.log(Object.keys(dict).length) // expected result : 3
dictionary length javascript
Object.keys(dictionary).length
// check length of dictionary
let dict = {a:1 , b:2 , c:3}
console.log(Object.keys(dict).length) // expected result : 3
Object.keys(dictionary).length
In this page (written and validated by A. Gawali) you learned about . What's Next? If you are interested in completing Javascript tutorial, we encourage you simply to start here: Javascript Tutorial.
Share On: |