Export Image
Export Code

hanulik

Last edited Aug 24, 2021
Created on Aug 24, 2021

výpis do konzole

In this example, this represents the object that "owns" myFunction:
document.getElementById("demo").innerHTML = myFunction.call({model: 'necosic'});

function myFunction() { return this; }

Functions are Objects
The typeof operator in JavaScript returns "function" for functions.

But, JavaScript functions can best be described as objects.

JavaScript functions have both properties and methods.

MIT Licensed