Skip to content

Commit 0194cb3

Browse files
committed
initials.js task completed
1 parent 9f085a5 commit 0194cb3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
const firstName = "Creola";
22
const middleName = "Katherine";
33
const lastName = "Johnson";
4+
const initials = `${firstName[0]}${middleName[0]}${lastName[0]}`;
45

5-
// Declare a variable called initials that stores the first character of each string.
6-
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.
6+
console.log(initials);
77

8-
const initials = ``;
9-
10-
// https://www.google.com/search?q=get+first+character+of+string+mdn

0 commit comments

Comments
 (0)