Repeat a character in ECMA script 6

In order to repeat a character in ECMA script 6 all we need to do is to use the repeat function…

"w".repeat(7); //output wwwwwww

Like this post? Kindly share!