Skip to content

Commit 9c79a73

Browse files
committed
delet 2 notes from the 3-paths.js
1 parent 0fc7d66 commit 9c79a73

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ const lastSlashIndex = filePath.lastIndexOf("/");
1414
const base = filePath.slice(lastSlashIndex + 1);
1515
console.log(`The base part of ${filePath} is ${base}`);
1616

17-
gi
18-
// Create a variable to store the ext part of the variable
17+
18+
1919
const startDirIndex = filePath.lastIndexOf("Users"):
2020
const dir = filePath.slice(startDirIndex , lastSlashIndex);
2121
console.log(`The dir part of ${filePath} is ${dir}`);
2222
const dotIndex = filePath.lastIndexOf(".");
2323
const ext = filePath.slice(dotIndex + 1);
2424
console.log(`The ext part of the ${filePath} is ${ext}`);
2525

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

0 commit comments

Comments
 (0)