A Pen by Obiagba Mary Ifeoma on CodePen.
Created
March 4, 2020 02:33
-
-
Save Ifycode/bf008c085fdce27303af9d253a9d0d7d to your computer and use it in GitHub Desktop.
Embed Practice
This file contains hidden or 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
let alertNumber = 1; | |
let countDownWards = 5; | |
//practice loops with alerts, it will help visualize loops | |
for (; alertNumber <= 5;) { | |
alert("Alert " + alertNumber + " says " + countDownWards); //for simpler version | |
alertNumber++; | |
countDownWards--; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment