Last active
March 24, 2021 22:23
-
-
Save doriansmiley/53a37191f83f95b31227398b2c96cb50 to your computer and use it in GitHub Desktop.
Print 0-100 no numbers
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
| const one = true >> false; | |
| const zero = false >> true; | |
| const ten = parseInt(one.toString() + zero.toString()); | |
| let stop = ten * ten; | |
| const printInRecursion = (index) => { | |
| if (index > stop) { | |
| return | |
| } | |
| console.log(index++); | |
| printInRecursion(index); | |
| } | |
| printInRecursion(one); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment