5 ms·
Where do you think the binding happens in my example, then?
by int_19h 4y ago
Where do you think the binding happens in my example, then?
- inbx0 4y agoIn line 3, where it's called })(); With this way of invoking, `this` will be `undefined` in "strict mode" (i.e. if the file or parent function has 'use strict' or if we are in an ES module), and Window in "sloppy mode".