Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR 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
 
PREVIOUS NEXT
Tagged: #length #dict #js
ADD COMMENT
Topic
Name
8+4 =