Skip to content

Commit 7fa22d6

Browse files
remove unnecessary backticks
1 parent 9663fde commit 7fa22d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const filePath = "/Users/mitch/cyf/Module-JS1/week-1/interpret/file.txt";
1313
const lastSlashIndex = filePath.lastIndexOf("/");
1414
const base = filePath.slice(lastSlashIndex + 1);
1515
console.log(`The base part of ${filePath} is ${base}`);
16-
const dir = filePath.slice(0, `${lastSlashIndex}`);
16+
const dir = filePath.slice(0, lastSlashIndex);
1717
const ext = filePath.slice(filePath.lastIndexOf("."));
1818
console.log(`The dir part of ${filePath} is ${dir}`);
1919
console.log(`The ext part of this URL is ${ext}`);

0 commit comments

Comments
 (0)