Skip to content

Commit b0e374d

Browse files
committed
Added in answer to question.
1 parent b31a586 commit b0e374d

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +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+
8+
// Line 3 is taking the value of count, then adding 1 to that value, then making that new value to be the current count.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ 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

1010
// https://www.google.com/search?q=get+first+character+of+string+mdn
1111

0 commit comments

Comments
 (0)