Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 300 Bytes

File metadata and controls

14 lines (11 loc) · 300 Bytes

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);