+ 2

How to print the same number or integer a number of times in JavaScript

I want to know how i can repeat a number using JavaScript. Which method can be used for that.

16th May 2020, 4:59 PM
Kwesi Arthur
Kwesi Arthur - avatar
3 Answers
+ 1
Thanks for your answer. I am very grateful
17th May 2020, 2:22 PM
Kwesi Arthur
Kwesi Arthur - avatar
0
Don't you think a simple for loop will do this job in your case?
16th May 2020, 5:47 PM
Avinesh
Avinesh - avatar