News for hackers. Stuff that matters.
Re:JavaScript Isn't Scheme (2013) by kec on Wednesday April 25, 2018 @07:15PM (#16927293)
The problem (as I see it anyway) is that function scoping + hoisting is weird and can cause some unexpected bugs.
Re:JavaScript Isn't Scheme (2013) by tomxor on Wednesday April 25, 2018 @08:43PM (#16927868)
Once you learn that fact, and then avoid ever using

  function name() {}
definitions, you will never have the problem of confusing hoisting actually happen to you...

Yes var had it's own set of problems (which you could argue make the alternative of assigning functions to variables bad) causing unexpected bugs but those have in turn been solved very well by const and let... and just like function names, there is also no reason to use var now.