Skip to content

Commit 54a88fb

Browse files
added instruction for finding initials and console log to check output
1 parent 3372770 commit 54a88fb

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ let count = 0;
33
count = count + 1;
44

55
// 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
6+
// Line 3 increments the variable by 1
7+

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ 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]}`;
9+
10+
console.log(initials);
11+
912

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

0 commit comments

Comments
 (0)