Skip to content

Commit 06435e4

Browse files
realised there was no backticks in console.log
1 parent 5957240 commit 06435e4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const lastDotIndex = filePath.lastIndexOf(".");
2121
const firstSlashIndex = filePath.indexOf("/");
2222
const dir = filePath.slice(firstSlashIndex, lastSlashIndex);
2323
const ext = filePath.slice(lastDotIndex);
24-
console.log("The directory is: ${ext}");
25-
console.log(dir);
24+
console.log(`The directory is ${dir}`);
25+
console.log(`The ext is ${ext}`);
2626

2727
// https://www.google.com/search?q=slice+mdn

0 commit comments

Comments
 (0)