Skip to content

Commit ed76a69

Browse files
committed
added console.log to initials.js
1 parent a66e3fe commit ed76a69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ let lastName = "Johnson";
99
//Solution using charAt() a Javascript string method that returns a character's position, using template literal
1010
// and toUpperCase to ensure it is capitalized.
1111
let initials = `${firstName.charAt(0)}${middleName.charAt(0)}${lastName.charAt(0)}`.toUpperCase();
12-
12+
console.log(initials);
1313

1414
//alternative solution using string indexing, template literal and toUppercase(to make sure it is capitalized)
1515
//let initials - `${firstName[0]}${middleName[0]}${lastName[0]}`.toUpperCase());

0 commit comments

Comments
 (0)