What are the differences between Javascript instanceof and typeof?

The differences between Javascript instanceof and typeof are given below:

typeofinstanceof
1. typeof syntax is: typeof operand1. instanceof syntax is: object instanceof constructor

Comments