Skip to content

Commit ac0f011

Browse files
committed
count 1 explanation
1 parent 6c4bfa2 commit ac0f011

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
let count = 0;
22

33
count = count + 1;
4+
//console.log(count);
45

56
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
67
// Describe what line 3 is doing, in particular focus on what = is doing
7-
// Here, line 3 is a statement that is reassigning a value to count by incrementing it by 1.
8+
// Line 3 is a statement that is is reassigning the value of count, to add 1 to the initial declaration which was 0.

0 commit comments

Comments
 (0)