Answers for "string length node js"

0

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
Posted by: Guest on July-20-2020
4

js string length

let str = "foo";
console.log(str.length);
// 3
Posted by: Guest on January-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language