Skip to main content

New answers tagged

3 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

Top 50 recent answers are included