filmov
tv
JavaScript Tutorial 17 - JavaScript While and do..while Loop

Показать описание
a JavaScript tutorial on creating while and do...while loops. Both while and do..while loops with go over some code for the set conditions.
While loop always first checks to see if loop condition is met and then executes its statements.
Do..While loop will always execute the statements once and at the end of executing the statements it checks the loop condition, and next iteration will only go if condition is met.
While loop always first checks to see if loop condition is met and then executes its statements.
Do..While loop will always execute the statements once and at the end of executing the statements it checks the loop condition, and next iteration will only go if condition is met.