Home | Mailing List | Blog | Tutorial Videos

this Keyword

When running JavaScript in the browser, what gets logged when we try to call myFunction()?

function myFunction() {
  console.log(this);
}
myFunction();

Select one: