length of javascript string code example
Example 1: js string length
let str = "foo";
console.log(str.length);
// 3
Example 2: length of string in javascript
var str = "Hello World!";
var n = str.length;
Example 3: javascript check string lenght
let SomeString = "Example";
console.log(SomeString.length)