Skip to content

Commit e6ec04b

Browse files
committed
update: remove unimportant code lines
1 parent 2fc4c90 commit e6ec04b

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ const ext=base.slice(base.lastIndexOf(".") + 1); // The code uses the lastIndexO
1818
// Create a variable to store the dir part of the filePath variable
1919
const dir = filePath.slice(0, lastSlashIndex);// The code uses the lastIndexOf method to find the position of the last slash in;
2020
filePath.slice(0, lastSlashIndex);
21-
filePath
22-
.slice(lastSlashIndex + 1)
23-
.split(".")
24-
.pop();
2521
console.log(`The dir part of ${filePath} is ${dir}`);
2622
console.log(`The base part of ${filePath} is ${base}`);
2723
console.log(`The ext part of ${filePath} is ${ext}`);

0 commit comments

Comments
 (0)