We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 168186a commit 72645b8Copy full SHA for 72645b8
Sprint-1/1-key-exercises/2-initials.js
@@ -9,3 +9,9 @@ let initials = ``;
9
10
// https://www.google.com/search?q=get+first+character+of+string+mdn
11
12
+function getInitial(firstName, middleName, lastName) {
13
+ return firstName[0] + middleName[0] + lastName[0];
14
+}
15
+
16
+initials = getInitial("Creola", "Katherine", "Johnson");
17
+console.log(`initials is ${initials}`);
0 commit comments