This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

The JavaScript this Keyword

In a function, by default, this refers to the global object.

Strict mode does not allow default binding, so this is:

"use strict";
document.getElementById("demo").innerHTML = myFunction();

function myFunction() {
  return this;
}