Skip to content

Commit 375754a

Browse files
Added the term 'increment to the description.
1 parent f8841d1 commit 375754a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sprint-1/1-key-exercises/1-count.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ count = count + 1;
55
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
66
// Describe what line 3 is doing, in particular focus on what = is doing
77

8-
line 3 is updating the value of the count variable by adding 1 to its current value.
8+
line 3 is and incerment operation that increasing the value of the count variable by adding 1 to its current value.
99
The = opperator is an assignment opperator that assigns the result of the expression on the right (count+1) to the varibale on the left (count).
1010
so, if count was 0 befor line 3 is excuted it will be 1 after line 3 is excuted.
1111
And if it was 1 it will be 2 after line 3 is excuted.

0 commit comments

Comments
 (0)