for(var i = 0 ; i<5 ; i++ ) { for(var j=0 ; j<=i;j++) { console.log("*"); } console.log("\n") }
To embed this program on your website, copy the following code and paste it into your website's HTML: