DEV Community

loading...

Discussion on: Var, let and const- what's the difference?

Collapse
arung86 profile image
Arun Kumar G

In a global scope var will be associated with global object
where as let and const are not
ex: window.var_variable
not supported by let and const