Closed gaand closed 7 years ago
This shouldn't be an aside, it should be the focus:
const foo = function () { 'use strict' console.log('this', this) } foo()
prints this undefined to the console, not the object global/window.
this undefined
global
window
Check webpack and global window object as global this
this
This shouldn't be an aside, it should be the focus:
prints
this undefined
to the console, not the objectglobal
/window
.