What does the instanceof operator do?



What does the instanceof operator do?..

Answer / Atendra Singh

The `instanceof` operator in JavaScript checks if an object is an instance of a constructor. It returns true if the object was created using the specified constructor, and false otherwise.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

why you used Java Script? Can it use for both client side and server side validation purpose?

12 Answers   BeBo Technologies, HCL, Wipro,


What does => mean in node js?

1 Answers  


Write JavaScript code to use file system in binary format?

1 Answers  


what is pop()method in JavaScript?

1 Answers  


What is Minification

1 Answers  


Explain javascript event delegation model?

1 Answers  


how to validate the date(dd/mm/yyyy)using regular expression in javascript? It should also satisfy the leap year feb 29 problem. Please help me.

2 Answers  


How to use external JavaScript file?

1 Answers  


What is screen object in JavaScript?

1 Answers  


Why is javascript dangerous?

1 Answers  


What is a closure javascript?

1 Answers  


Are Typescript and Javascript the same?

1 Answers  


Categories