Skip to content

Commit ee92c6c

Browse files
add console log
1 parent 0150260 commit ee92c6c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

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

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

0 commit comments

Comments
 (0)