3 ms·
Scope of var (they fixed this with let) Automatically creating a variable (with global scope) if you attempt to use a variable that doesn't exist. Semicolons
by astura 6y ago
Scope of var (they fixed this with let)
Automatically creating a variable (with global scope) if you attempt to use a variable that doesn't exist.
Semicolons are optional, except when they aren't.
== and === (at minimum they should be reversed)
- elevenoh 6y ago>Automatically creating a variable (with global scope) if you attempt to use a variable that doesn't exist. I just tested this as I think you're describing & it didn't create a global var. Could you give an example?
- astura 6y agohttps://stackoverflow.com/questions/53330616/please-explain-automatically-global-in-javascript https://stackoverflow.com/questions/53330616/please-explain-...