Skip to content

Commit b52ce70

Browse files
committed
Key -exercise 1 done.
1 parent 3372770 commit b52ce70

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,4 @@ let count = 0;
22

33
count = count + 1;
44

5-
// Line 1 is a variable declaration, creating the count variable with an initial value of 0
6-
// Describe what line 3 is doing, in particular focus on what = is doing
5+
// Line 1 makes a variable called count and gives the value 0. Line 3 ads 1 to the value of count. So after line 3, count has the value 1. If we were to run line 3 again, count would have the value 2. If we were to run line 3 again, count would have the value 3. And so on. Each time we run line 3, we add 1 to the value of count.

Sprint-1/1-key-exercises/2-initials.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ let lastName = "Johnson";
55
// Declare a variable called initials that stores the first character of each string.
66
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.
77

8-
let initials = ``;
8+
let initials = firstName[0] + middleName[0] + lastName[0];
99

10-
// https://www.google.com/search?q=get+first+character+of+string+mdn
1110

Sprint-1/1-key-exercises/3-paths.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ console.log(`The base part of ${filePath} is ${base}`);
2020
const dir = ;
2121
const ext = ;
2222

23-
// https://www.google.com/search?q=slice+mdn

0 commit comments

Comments
 (0)