8000 Clarify i++ notation (#8) · muses-code-js/js-intro-workshop@dd184a2 · GitHub
[go: up one dir, main page]

Skip to content

Commit dd184a2

Browse files
karimatthewsButenkoT
authored andcommitted
Clarify i++ notation (#8)
1 parent d979066 commit dd184a2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

js/level2.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,8 @@
236236
We can use a 'for loop' to iterate through our array and get each value
237237
from it.
238238
239+
Note: i++ is another way of writing i = i+1.
240+
239241
Example:
240242
241243
var animals = ['cats', 'dogs', 'horses'];

0 commit comments

Comments
 (0)
0