We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7ce6b5 commit 90091fdCopy full SHA for 90091fd
1 file changed
Sprint-1/1-key-exercises/3-paths.js
@@ -17,7 +17,7 @@ const base = filePath.slice(lastSlashIndex + 1);
17
// Create a variable to store the ext part of the variable
18
19
const firstSlashIndex = filePath.indexOf("/");
20
-const dir = filePath.slice(firstSlashIndex + 1, lastSlashIndex);
+const dir = filePath.slice(firstSlashIndex + 1, lastSlashIndex +1);
21
22
const lastdotindex = filePath.lastIndexOf(".");
23
const ext = filePath.slice(lastdotindex);
0 commit comments