Hacker News new | ask | show | jobs
by lnanek 5290 days ago
He is talking about if you don't do anything extra (in this case, use the var keyword). Much like the nonlocal keyword in Python requires knowing about it and wanting to use it in order to actually use it and get the non-default behavior.
1 comments

var is not extra in JavaScript the way nonlocal is in Python. var is a language construct that any good JavaScript program must use.