You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sprint-1/1-key-exercises/1-count.js
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,5 +2,7 @@ let count = 0;
2
2
3
3
count=count+1;
4
4
5
+
console.log(count);// Output: 1
5
6
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6
7
// Describe what line 3 is doing, in particular focus on what = is doing
8
+
//Line 3 is reassigning the count variable to a new value which is the current value increment by 1, "=" is assigning operator that assigning value of right side which mens count increment 1 to the left side value of count variable
0 commit comments