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

javascript/0071-simplify-path.js

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy