javascript test for string length code example
Example 1: length of string in javascript
var str = "Hello World!";
var n = str.length;
Example 2: javascript string length
const s = 'Hello, World!';
console.log(s.length);
var str = "Hello World!";
var n = str.length;
const s = 'Hello, World!';
console.log(s.length);