Skip to content

Commit 78f922e

Browse files
committed
Extracts first characters from firstname, middlename and lastname in initials.js
1 parent 6f2377a commit 78f922e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ const lastName = "Johnson";
77

88
const initials = firstName[0] + middleName[0] + lastName[0];
99

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

0 commit comments

Comments
 (0)