Skip to content

Commit ccf1a79

Browse files
committed
Add console log to display initials in 2-initials.js
1 parent d233466 commit ccf1a79

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ const lastName = "Johnson";
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

88
const initials = `${firstName[0]} ${middleName[0]} ${lastName[0]} `;
9+
10+
console.log(initials);

0 commit comments

Comments
 (0)