Skip to content

Commit 647de99

Browse files
committed
added first character variable
1 parent 285587f commit 647de99

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ const lastName = "Johnson";
88
const initials = ``;
99

1010
// https://www.google.com/search?q=get+first+character+of+string+mdn
11+
12+
const firstChar = text[0];
13+
14+
console,log(firstChar);

0 commit comments

Comments
 (0)