How to declare global variables, if we use the let? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to declare global variables, if we use the let?

es6 let and global var

5th Nov 2016, 6:19 AM
Вадим Глушков
Вадим Глушков - avatar
2 Answers
+ 1
hey. example please.
5th Nov 2016, 11:49 AM
Вадим Глушков
Вадим Глушков - avatar
- 1
a global variable is declare when you write a variable outside of function and object and this variable can access by both function and object
5th Nov 2016, 6:32 AM
Aditya kumar pandey
Aditya kumar pandey - avatar