- A true
- B false
- C "true"
- D "false"
- Share this MCQ
Answer:
A
Share this MCQ
The instanceof
operator in JavaScript is used to determine whether an object is an instance of a particular constructor or class.
In this case, the variable obj has been assigned an empty object.
The instanceof
operator is called on obj, with Object as the right operand.
Since obj is an instance of the Object constructor, the instanceof
operator will return true.
Share this MCQ