Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

loops

//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 autocode-next.lab.epam.com #
 
PREVIOUS NEXT
Tagged: #loops
ADD COMMENT
Topic
Name
7+5 =