instanceof
Term side of the Card
Topic: Syntax
Unit title: instanceof
Categories: Keyword
Explanation side of the Card
Explanation: The keyword that checks if an object belongs to a specific prototype chain. It compares the prototype property of a constructor with the prototype chain of the object, returning a boolean value. Commonly used for type checking in object-oriented programming.
Browser compatibility:
- The chrome browser supports this feature starting from version 3
- The edge browser supports this feature starting from version 12
- The firefox browser supports this feature starting from version 3.5
- The safari browser supports this feature starting from version 4
Availability: