The following example works as expected, and console.log(this) returns methods, variables, etc
function foo() {
  console.log(this);
}
foo();
However, this does not:
export const something = 'anything';
function foo() {
  console.log(this);
}
foo();
In this case, conosle.log(this) is undefined. Why?
 
     
    