28 ms·
It always creates a local var. You can only assign to globals indirectly, through properties of the global object e.g. window.foo = 123.
by extension 15y ago
It always creates a local var. You can only assign to globals indirectly, through properties of the global object e.g. window.foo = 123.