Star Print в JavaScript

for(var i=1; i<=4; i++){
   console.log("*".repeat(i));
}

/*
Output is: 
"*"
"**"
"***"
"****"
*/
Tame Tuatara