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 affd78a commit 93fae64Copy full SHA for 93fae64
Sprint-1/1-key-exercises/3-paths.js
@@ -27,5 +27,5 @@ filePath
27
.pop();
28
// Create a variable to store the ext part of the variable
29
30
-const ext=base.slice(base.lastIndexOf(".") + 1);
+const ext=base.slice(base.lastIndexOf(".") + 1); // The code uses the lastIndexOf method to find the position of the last dot in the base variable.
31
console.log(`The ext part of ${filePath} is ${ext}`);
0 commit comments