-
-
Save parzibyte/27af08318cab15757cc4642821edef45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let cadena = "NA "; // con espacio al final | |
let cadenaRepetida = cadena.repeat(20); // repetir 20 veces | |
let cancion = cadenaRepetida + "Batman!"; | |
console.log(cancion); | |
// Salida: NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA NA Batman! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment