Created
April 23, 2021 22:42
-
-
Save thanoskoutr/af5efb12933a36b3186d021235d83193 to your computer and use it in GitHub Desktop.
A simple JavaScript program that initializes an array with 100 elements and prints it.
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
const a = []; | |
for (let i=0; i < 100; i++) { | |
a.push(i); | |
} | |
a.forEach(i => console.log(i)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment