Skip to content

Commit 9082c8c

Browse files
authored
Refine comments on count variable assignment
Updated comments to clarify variable assignment and increment.
1 parent f6c55f9 commit 9082c8c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ 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-
//a variable is initialised and assigned a value zero, than it was reassigned additing 1 to its value.
7+
//Line two we see the variable count using the = sign to assign a new value whcih is count previous value + 1
8+
//the equal sign in line two is assigned operator that stores the new value to the variable

0 commit comments

Comments
 (0)