SyntaxFix
Write A Post
Hire A Developer
Questions
For repeat a value in my projects i use repeat
For example:
var n = 6; for (i = 0; i < n; i++) { console.log("#".repeat(i+1)) }
but be careful because this method has been added to the ECMAScript 6 specification.