Skip to content

Commit 30a9b02

Browse files
new branch called :coursework/sprint-1., created
1 parent 3372770 commit 30a9b02

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,8 @@ count = count + 1;
44

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
7+
8+
// line 3 is updating the value of the count variable by adding 1 to its current value.
9+
// 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).
10+
// so, if count was 0 befor line 3 is excuted it will be 1 after line 3 is excuted.
11+
// And if it was 1 it will be 2 after line 3 is excuted.

0 commit comments

Comments
 (0)