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.