There was an error while loading. Please reload this page.
1 parent 4cc01f5 commit 0a50eb5Copy full SHA for 0a50eb5
1 file changed
Sprint-2/1-key-exercises/3-paths.js
@@ -12,13 +12,13 @@
12
const filePath = "/Users/mitch/cyf/Module-JS1/week-1/interpret/file.txt";
13
const lastSlashIndex = filePath.lastIndexOf("/");
14
const base = filePath.slice(lastSlashIndex + 1);
15
-onsole.log(`The base part of ${filePath} is ${base}`);
+console.log(`The base part of ${filePath} is ${base}`);
16
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
const dir = filePath.slice(0, lastSlashIndex);
21
-console.log(dir);
+console.log(`The dir part of ${filePath} is ${dir}`);
22
23
const ext = base.slice(4);
24
console.log(ext);
0 commit comments