How to create a string from one char with JavaScript?
This is C#. 
String text = new String('*',20);
Is there an easy way to do this with JavaScript?
How to create a string from one char with JavaScript?
This is C#. 
String text = new String('*',20);
Is there an easy way to do this with JavaScript?
You could join an array
var text = new Array(20).join('*');
// returns ********************