I am having trouble understanding "this" keyword behaviors in JavaScript (NodeJS - v16.19.1). According to this site, "this" keyword in the global execution context will reference the global object:
// this is my entire index.js file, I run "node index.js"
// global scope
console.log(this === globalThis); // this should be true but it is false.
console.log(this); // undefined
Running it in NodeJS (v16.19.1) in WSL 2 (windows 10) Is there an explanation for this? Thank you!