Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Javascript loop

//First, declare a variable for initial value
const doWhile = 10;
//Second, get do-while and write what to execute inside do bracket.
//Then, write ++/-- according to your condition.
//Lastly, inside while bracket write your condition to apply.
do{
	console.log(doWhile)
  	doWhile--
}while(doWhile >= 0)
Source by coders911.org #
 
PREVIOUS NEXT
Tagged: #Javascript #loop
ADD COMMENT
Topic
Name
8+1 =