Skip to content

Latest commit

 

History

History

do-while-loop

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

JavaScript - Do While loop

Do while loop is also used to traverse the array, strings etc...

But the condition would be checked only after completing the first iteration.

  • Syntax:
    initializer
    do {
        // statements
        increment
    } while (condition);