Q. How do you check if an object has a specific property?
β
Correct Answer: (A)
hasOwnProperty()
Explanation: hasOwnProperty() checks if a property is defined on the object.