JavaScript Crear una cadena de longitud dada
var str = 'character'.repeat(desiredLength)
Uninterested Unicorn
var str = 'character'.repeat(desiredLength)
var str = new Array(len + 1).join( character );