Permalink
Cannot retrieve contributors at this time
5 lines (3 sloc)
374 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
git-workflow-exercise/04 - JS/what-is-the-difference-bewteen-while-and-do-while-loops-in-javascript.md
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A while loop will only begin to execute if the conditional statement in the while statement is true. | |
A do while loop will always execute its contents at least once, regardless of whether the conditional statement is true. | |
In other words, a while loop checks the conditional statement at the beginning of the loop, while a do while loop will check the statement at the end. |