logo
Search
showing results for - "star print in javascript"
Enora
17 Mar 2020
1for(var i=1; i<=4; i++){
2   console.log("*".repeat(i));
3}
4
5/*
6Output is: 
7"*"
8"**"
9"***"
10"****"
11*/
12
source
similar questions
printf statement in javascriptprint stuff in console javascripthow to print in javascripthow to code print in javascripthow to print something in javascriptprint in javascripthow to print in java scriptreverse star pattern in javascriptprint 28 29 in javascriptjs code starsstar pattern in javascriptjavascript printstar pattern in javascriptprint js exampleprint page using js
queries leading to this page
how do you print a star in javascript 3fstar print in javascriptu star printing in javascriptjs star printstar print in javascript
privacy policyterms of useinstagram
Crafted with  ♥  for everyone

sign in to continue
your answer for
you will get a confirmation link on this - you will have to click that for successful submission of your answer. we require this to keep the website free of spam, bots and unhelpful content
please ensure to add code which is syntactically corrent and executes properly
sign in to continue
ask question on maxinterview
you will get a confirmation link on this - you will have to click that for successful submission of your question. we require this to keep the website free of spam, bots and unhelpful content
please be clear, to the point and respectful
sign in to continue