News for hackers. Stuff that matters.
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.

There are no comments on this comment yet.