DRAKON.SU
https://forum.drakon.su/

JavaScript program without keywords: var, const, let
https://forum.drakon.su/viewtopic.php?f=218&t=6580
Страница 1 из 1

Автор:  Владимир Паронджанов [ Четверг, 30 Май, 2019 17:03 ]
Заголовок сообщения:  JavaScript program without keywords: var, const, let

JavaScript program without keywords:
var, const, let


https://www.youtube.com/watch?v=MHENH40yHZk
Цитата:
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/

https://drakon.tech/js/tutorials/var-const-let
Цитата:
Keywords var, const, and let

Do 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):
Изображение

Страница 1 из 1 Часовой пояс: UTC + 3 часа
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/