There was an error while loading. Please reload this page.
1 parent 1dc171d commit 6ca968bCopy full SHA for 6ca968b
1 file changed
Sprint-1/1-key-exercises/3-paths.js
@@ -18,5 +18,10 @@ console.log(`The base part of ${filePath} is ${base}`);
18
// Create a variable to store the ext part of the variable
19
20
const dir = filePath.slice(0, lastSlashIndex);
21
+console.log(`ABC ${filePath.lastIndexOf(".")}`);
22
+const lastDotIndex = filePath.lastIndexOf(".");
23
const ext = filePath.slice(lastDotIndex);
-// https://www.google.com/search?q=slice+mdn
24
+// https://www.google.com/search?q=slice+mdn
25
+
26
27
0 commit comments