Skip to content

Added a new JS section question #14

Merged
merged 2 commits into from May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,5 @@
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.