JavaScript without var, const, letОпубликовано: 7 мая 2019 г.
Learn how Drakon.Tech protects you from accidentally writing to the global scope. You don't need var, const, and let in your JavaScript code.
https://drakon.tech/ Keywords var, const, and letDo not use var, const, and let
Drakon.Tech will detect assignments and create variable declarations automatically.
Drakon.Tech protects you from writing to the global scope.
Exceptions
Lambda expressions and function expressions.
Roof, header, footer, and basement (in the properties of a module).
In the example below, the "array" variable is declared automatically, but "square" needs a "var" keyword (because it is inside a function expression):