Skip to content

Commit 0a50eb5

Browse files
committed
fix: correct console log messages for base and dir parts in 3-paths.js
1 parent 4cc01f5 commit 0a50eb5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Sprint-2/1-key-exercises/3-paths.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@
1212
const filePath = "/Users/mitch/cyf/Module-JS1/week-1/interpret/file.txt";
1313
const lastSlashIndex = filePath.lastIndexOf("/");
1414
const base = filePath.slice(lastSlashIndex + 1);
15-
onsole.log(`The base part of ${filePath} is ${base}`);
15+
console.log(`The base part of ${filePath} is ${base}`);
1616

1717
// Create a variable to store the dir part of the filePath variable
1818
// Create a variable to store the ext part of the variable
1919

2020
const dir = filePath.slice(0, lastSlashIndex);
21-
console.log(dir);
21+
console.log(`The dir part of ${filePath} is ${dir}`);
2222

2323
const ext = base.slice(4);
2424
console.log(ext);

0 commit comments

Comments
 (0)