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 fd5b31a commit 32ba325Copy full SHA for 32ba325
1 file changed
Sprint-1/1-key-exercises/3-paths.js
@@ -17,11 +17,9 @@ console.log(`The base part of ${filePath} is ${base}`);
17
// Create a variable to store the dir part of the filePath variable
18
// Create a variable to store the ext part of the variable
19
20
-
21
-let dirDirectory = filePath.slice(filePath.indexOf("/"),filePath.lastIndexOf("."));
+let dirDirectory = filePath.slice(filePath.indexOf("Users"),filePath.lastIndexOf("/"));
22
let extDirectory = filePath.slice(filePath.lastIndexOf("."));
23
-let baseDirectory = filePath.slice(filePath.lastIndexOf("/"));
24
console.log(`The dir part of the file is ${dirDirectory}.`);
25
console.log(`The ext part of the file is ${extDirectory}.`);
26
-console.log(`The base part of the file is ${baseDirectory}.`);
+
27
// https://www.google.com/search?q=slice+mdn
0 commit comments