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 0db337a commit 86fc314Copy full SHA for 86fc314
Sprint-1/1-key-exercises/3-paths.js
@@ -20,6 +20,6 @@ const secondCharacterIndex = 1;
20
const startingPointForExtension = filePath.lastIndexOf(".");
21
22
const dir = filePath.slice(secondCharacterIndex, lastSlashIndex);
23
-const ext = filePath.slice(startingPointForExtension + 1, filePath.length);
+const ext = filePath.slice(startingPointForExtension + 1);
24
console.log(`The dir part of ${filePath} is ${dir} and the ext part is ${ext}`);
25
// https://www.google.com/search?q=slice+mdn
0 commit comments