Skip to content

Commit a15cc87

Browse files
authored
creating a string CKJ
1 parent 08aad71 commit a15cc87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ let firstName = "Creola";
22
let middleName = "Katherine";
33
let lastName = "Johnson";
44

5+
56
// Declare a variable called initials that stores the first character of each string.
67
// This should produce the string "CKJ", but you must not write the characters C, K, or J in the code of your solution.
78

9+
10+
811
let initials = `${firstName[0]}${middleName[0]}${lastName[0]}`;
912

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

0 commit comments

Comments
 (0)