string size in javascript code example
Example 1: string size javascript
var str = "Hello World!";
var n = str.length; // n == 12
Example 2: javascript string lentrh
var myString = "string test";
var stringLength = myString.length;
console.log(stringLength); // Will return 11 because myString
// is 11 characters long...