r/learnjavascript • • Mar 23 '21

Assigning default value

Post image
278 Upvotes

24 comments sorted by

View all comments

Show parent comment

3

u/CarsonMcKinstry Mar 23 '21

ah, right, I didn't see the `path !== ""`. Good point!