Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

star print in javascript

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

/*
Output is: 
"*"
"**"
"***"
"****"
*/
Comment

PREVIOUS NEXT
Code Example
Javascript :: Detect Mobile / Computer by Javascript 
Javascript :: never give up 
Javascript :: how to refrence schema in my mongoose schema 
Javascript :: js number format space 
Javascript :: loading button jquery 
Javascript :: javascript bigdecimal 
Javascript :: component navigation without changin the url react router 
Javascript :: js loop array back 
Javascript :: can we pass variable to a object 
Javascript :: arange 
Javascript :: javascript check number length 
Javascript :: how to tell this x = 12 + 30 when i read it in js 
Javascript :: display form input on console jquery 
Javascript :: sum in javascript 
Python :: jupyter ignore warnings 
Python :: tkinter make window not resizable 
Python :: if file exists delete python 
Python :: python wait 1 sec 
Python :: python currnent time now 
Python :: change django admin title 
Python :: python 1 second delay 
Python :: pip clear cache command 
Python :: scikit learn dataset into pandas dataframe 
Python :: get stats from array 
Python :: sns set figure size 
Python :: meter to cm in python 
Python :: take space separated int input in python 
Python :: how to make a custom icon for pygame 
Python :: python iterate list reverse 
Python :: export image python 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =