Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 058bf7b

Browse files
Create for-loop.js
1 parent 16de5e6 commit 058bf7b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎09 Loops/Examples/for-loop.js‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
for (a = 1; a <= 10; a++) {
2+
console.log(`Number: ${a}`); // Outputs 1-10 in our console
3+
}
4+
5+
//We can have more than one value within our first statement, but they must be separated by commas: for (a = 1, b = 2; component-2; component-3) {}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /