published: 30 Sep 2022
2 min read
A great way to repeat a string
Array(6).join('0')
console.log(Array(6).join('0'))

Are we missing something? Help us improve this article. Reach out to us.
A great way to repeat a string
Array(6).join('0')
console.log(Array(6).join('0'))
Are you looking for other code tips?
Check out what's on in the category: javascript
TipsAndTricksta
I love coding, I love coding tips & tricks, code snippets and javascript