Default binding standalone call
When a function is called without any context, this is the global object in non-strict mode (window in browsers, global in Node.js) or undefined in strict mode.
function showThis() {
console.log(this)
}
showThis() // global object (sloppy) or undefined (strict)
// In strict mode:
"use strict"
function strictShowThis() {
console.log(this) // undefined
}
strictShowThis()