diff --git a/04 - JS/difference-between-==-and-===-in-JS.md b/04 - JS/difference-between-==-and-===-in-JS - Copy.md similarity index 100% rename from 04 - JS/difference-between-==-and-===-in-JS.md rename to 04 - JS/difference-between-==-and-===-in-JS - Copy.md diff --git a/04 - JS/what-is-the-difference-bewteen-while-and-do-while-loops-in-javascript.md b/04 - JS/what-is-the-difference-bewteen-while-and-do-while-loops-in-javascript.md new file mode 100644 index 0000000..d224647 --- /dev/null +++ b/04 - JS/what-is-the-difference-bewteen-while-and-do-while-loops-in-javascript.md @@ -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. \ No newline at end of file