Skip to content

Commit d5bf539

Browse files
committed
test with console.log
1 parent 36977b2 commit d5bf539

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Sprint-2/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 = filePath.slice(filePath.lastIndexOf(".") + 1);
2222

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

0 commit comments

Comments
 (0)