Skip to main content
2 votes

Is there any reason to use the "var" keyword in ES6?

There is exactly one reason that I'm aware of to use var in current JavaScript code: For highly performance-sensitive code, it can avoid the performance overhead of the temporal dead zone. The ...
Josh Kelley's user avatar
  • 11.2k

Only top scored, non community-wiki answers of a minimum length are eligible