html .length of a javascript dictionary code example
Example 1: 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
Example 2: dictionary length javascript
Object.keys(dictionary).length