Skip to content

Commit ad31727

Browse files
committed
removed quotes in sliced ext variable
1 parent e6e1610 commit ad31727

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
@@ -20,7 +20,7 @@ console.log(`The base part of ${filePath} is ${base}`);
2020
const dir = filePath.slice(0,lastSlashIndex);
2121
console.log(dir);
2222
const lastDotIndex = base.lastIndexOf(".");
23-
const ext = base.slice("lastDotIndex + 1");
23+
const ext = base.slice(lastDotIndex + 1);
2424
console.log(ext);
2525

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

0 commit comments

Comments
 (0)