create string of length javascript 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;
let str = "foo";
console.log(str.length);
// 3
var str = "Hello World!";
var n = str.length;