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 ebaef49 commit 6afaba2Copy full SHA for 6afaba2
1 file changed
Sprint-1/1-key-exercises/2-initials.js
@@ -5,15 +5,12 @@ let firstName = "Creola";
5
let middleName = "Katherine";
6
let lastName = "Johnson";
7
8
-
9
function getInitials() {
10
- return `${firstName[0]}${middleName[0]}${lastName[0]}`;
+ let initials = `${firstName[0]}${middleName[0]}${lastName[0]}`;
+ return initials;
11
}
12
13
-console.log(getInitials());
+console.log(getInitials());
14
15
// Export the initials for testing instead of returning at top-level
16
module.exports = getInitials;
17
18
19
0 commit comments