JavaScript - 20. Local and global variables

preview_player
Показать описание
In this video, we look at local and global variables in JavaScript. Local variables are variables declared inside functions, and could not be accessed outside the functions. Local variables are variables declared outside of functions, and can be accessed from anywhere within the document; even from inside of functions.
Рекомендации по теме
Комментарии
Автор

hello, first of all thanks for tutorials its great that you share your's expirience with other, and i have question if i make variable without the key word "var" even if its in the function its become global too is that good way of making vars?

maxnovikov
welcome to shbcf.ru