JavaScript Crie string de dado comprimento
var str = 'character'.repeat(desiredLength)
Uninterested Unicorn
var str = 'character'.repeat(desiredLength)
var str = new Array(len + 1).join( character );