Object instanceof Object
true
Object instanceof Function
true
Function instanceof Object
true
Function instanceof Function
true
so if Function is a
instanceof operator indicates if the first argument is of the given type. That is saying
A instanceof B
returns true if A is an instance of the type B.
The == and === operators are comparison operators on the other hand. They compare values for equality.
For instance, you can say jack instanceof Boy is true but would you say that jack == boy? No.