Skip to content

Commit df08e0a

Browse files
committed
Add console log to display file extension in 3-paths.js
1 parent 70f8230 commit df08e0a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,6 @@ console.log(`The dir part of ${filePath} is ${dir}`);
2323

2424
const lastDotIndex = base.lastIndexOf(".");
2525
const ext = base.slice(lastDotIndex);
26+
console.log(`The ext part of ${filePath} is ${ext}`);
2627

2728
// https://www.google.com/search?q=slice+mdn

0 commit comments

Comments
 (0)