- A true
- B false
- C "false"
- D "true"
- 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 foo
has been assigned a function. The instanceof
operator is called on foo, with Function as the right operand. Since foo
is an instance of
the Function constructor, the instanceof operator will return true.
Share this MCQ