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
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -2,5 +2,8 @@ let count = 0;
2
2
3
3
count=count+1;
4
4
5
+
6
+
5
7
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6
8
// Describe what line 3 is doing, in particular focus on what = is doing
9
+
//Line 3 is reassigning variable count with a new value, in this case we're saying add 1 to whatever we already have in count, and so by using the console.log before and after the reassignment the we can tell new value of count is 1
0 commit comments