Bellow code example is normal function in strict mode and when we call this function browser console show undefined. This is normal.
"use strict";
function checkBinding() {
console.log(this);
}
checkBinding();
But if we change code like bellow now console show Window object.
"use strict";
var checkBinding = new Function("console.log(this)");
checkBinding();
What is going on there?