3 ms·
>> "'this' is always 'window', unless the function is invoked as a method, i.e., as a property of an object:" More generally, 'this' is usually 'the global obj
by axod 18y ago
>> "'this' is always 'window', unless the function is invoked as a method, i.e., as a property of an object:"
More generally, 'this' is usually 'the global object'... would be more correct. And in a browser context, the global object is 'window'.