Advertisement
benjaminvr

Codecademy - Do while

Jul 20th, 2021
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let cupsOfSugarNeeded = 5;
  2. let cupsAdded = 0;
  3.  
  4. do {
  5.   cupsAdded++;
  6.   console.log(cupsAdded);
  7. } while (cupsAdded < cupsOfSugarNeeded);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement