Skip to content

Commit f92ac80

Browse files
committed
formatting using prettier
1 parent 2292f32 commit f92ac80

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ console.log(`The base part of ${filePath} is ${base}`);
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

20-
const dir = filePath.slice(0,lastSlashIndex+1);
20+
const dir = filePath.slice(0, lastSlashIndex + 1);
2121
const ext = filePath.slice(-3); //the extention of the file is always the last three characters in the path
2222
//or
23-
const lastPointIndex = filePath.lastIndexOf(".");
24-
const ext = filePath.slice(lastPointIndex+1);
23+
//const lastPointIndex = filePath.lastIndexOf(".");
24+
//const ext = filePath.slice(lastPointIndex+1);
2525

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

0 commit comments

Comments
 (0)