hopw to find out length of a string in js code example
Example 1: length of string in javascript
var str = "Hello World!";
var n = str.length;
Example 2: javascript create string of given length
var str = new Array(len + 1).join( character );
var str = "Hello World!";
var n = str.length;
var str = new Array(len + 1).join( character );