Skip to content

Commit ffc213f

Browse files
authored
Update 0071-simplify-path.js
using backticks
1 parent 0ae5426 commit ffc213f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: javascript/0071-simplify-path.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
var simplifyPath = function(path) {
1010
let currunt = '';
1111
let myStack = [];
12-
path = '/' + path + '/';
12+
path = `/${path}/`;
1313
for(let i = 0; i < path.length; i++) {
1414

1515
console.log(myStack);

0 commit comments

Comments
 (0)