Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

do while in js

let i =0
do{
console.log(i)
  i++;
}
while(i>10);// even i =0 which is not greater then 10 it will console.log 0 for 
//time as it execute code at least first time
Source by www.freecodecamp.org #
 
PREVIOUS NEXT
Tagged: #js
ADD COMMENT
Topic
Name
2+2 =