Skip to content

Instantly share code, notes, and snippets.

@thanoskoutr
Created April 23, 2021 22:42
Show Gist options
  • Save thanoskoutr/af5efb12933a36b3186d021235d83193 to your computer and use it in GitHub Desktop.
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.
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