Skip to content

Commit 94e8a72

Browse files
authored
Clean up initials.js by removing comments
Removed commented-out code and added a newline at the end of the file.
1 parent 9082c8c commit 94e8a72

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ const 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-
//const initials = ``;
9-
10-
// https://www.google.com/search?q=get+first+character+of+string+mdn
11-
128
const initials = `${firstName[0]}${middleName[0]}${lastName[0]}`;
139

14-
console.log(initials); // Output CKJ
10+
console.log(initials); // Output CKJ
11+
// https://www.google.com/search?q=get+first+character+of+string+mdn

0 commit comments

Comments
 (0)