Skip to content

Commit 0767a42

Browse files
authored
Update 3-paths.js
1 parent 813fe73 commit 0767a42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ console.log(`The base part of ${filePath} is ${base}`);
1818
// Create a variable to store the ext part of the variable
1919

2020
const dir = filePath.slice(0, lastSlashIndex);
21-
const ext = base.slice(lastDotIndex);
21+
const ext = filePath.slice(lastDotIndex);
2222

2323
console.log(`The dir part of ${filePath} is ${dir}`);
2424
console.log(`The ext part of ${filePath} is ${ext}`);
2525

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

0 commit comments

Comments
 (0)