Created
April 19, 2020 14:17
-
-
Save colibie/e6fbb3d7cf861dbc84c4dda1576fe3f0 to your computer and use it in GitHub Desktop.
An iterative approach to hello.js
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
let i = 5; // I've chosen an arbitrary number | |
while (i > 0) { | |
console.log(i--); | |
} | |
// output: 5 4 3 2 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment