estampa estrela em 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:
"*"
"**"
"***"
"****"
*/