Skip to content

Commit 373185a

Browse files
author
Pretty Taruvinga
committed
answered questions 2 and 3
1 parent 8fc0686 commit 373185a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ let lastName = "Johnson";
77
//
88
let initials = firstName[0] + middleName[0] + lastName[0];
99

10+
console.log(initials);
1011
// https://www.google.com/search?q=get+first+character+of+string+mdn
1112

Sprint-1/1-key-exercises/3-paths.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@ console.log(`The base part of ${filePath} is ${base}`);
2020
const dir = filePath.slice(0, lastSlashIndex);
2121
const ext = filePath.slice(filePath.lastIndexOf(".") + 1);
2222

23+
console.log(`The dir part of ${filePath} is ${dir}`);
24+
console.log(`The ext part of ${filePath} is ${ext}`);
2325
// https://www.google.com/search?q=slice+mdn

0 commit comments

Comments
 (0)