I have a simple codes like the following and execute it as a node module:
console.log(this);
module.exports = {…};
I know that global
is the default context (like window
in browsers), but what does the this
keyword refer to?
I have a simple codes like the following and execute it as a node module:
console.log(this);
module.exports = {…};
I know that global
is the default context (like window
in browsers), but what does the this
keyword refer to?