A

Admin • 833K Points
Coach

Q. How do you check if an object has a specific property?

  • (A) hasOwnProperty()
  • (B) contains()
  • (C) includes()
  • (D) exists()
  • Correct Answer - Option(A)
  • Views: 33
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

hasOwnProperty() checks if a property is defined on the object.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.