Skip to content

Commit 37a0f59

Browse files
committed
Adding answers for 1-count.js
1 parent d28242a commit 37a0f59

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎Sprint-2/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+
/*
9+
it is making count be the sum of count + 1.
10+
For example if this is part of a loop it will allow count to keep adding 1 each time the loop runs.
11+
*/

0 commit comments

Comments
 (0)