impresión estrella en JavaScript
for(var i=1; i<=4; i++){
console.log("*".repeat(i));
}
/*
Output is:
"*"
"**"
"***"
"****"
*/
Tame Tuatara
for(var i=1; i<=4; i++){
console.log("*".repeat(i));
}
/*
Output is:
"*"
"**"
"***"
"****"
*/