Skip to content

Commit 86fc314

Browse files
committed
i removed the second parameter on line 23
1 parent 0db337a commit 86fc314

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ const secondCharacterIndex = 1;
2020
const startingPointForExtension = filePath.lastIndexOf(".");
2121

2222
const dir = filePath.slice(secondCharacterIndex, lastSlashIndex);
23-
const ext = filePath.slice(startingPointForExtension + 1, filePath.length);
23+
const ext = filePath.slice(startingPointForExtension + 1);
2424
console.log(`The dir part of ${filePath} is ${dir} and the ext part is ${ext}`);
2525
// https://www.google.com/search?q=slice+mdn

0 commit comments

Comments
 (0)