Re:What’s New in ES2019
by z3t4 on Wednesday July 31, 2019 @07:07AM
(#20573299)
if you put var in-front you don't have to worry about reassigning a variable from parent scope. You also make assignment and comparison semantically different, example var foo=1; vs foo=1 if(foo=1) and it's thus easier to spot bugs and understand the code.
[ Parent
| on HN ]
There are no comments on this comment yet.