MCQ
Which operator is used to check if an object has a property?
JavaScript
A in
B hasOwnProperty
C typeof
D Both a and b
Explanation

The 'in' operator and hasOwnProperty() both check for property existence.