Lesson

Testing Objects for Properties, freeCodeCamp Basic Javascript

Lesson Summary

In this challenge we learn how to check if an object has a specific property using the .hasOwnProperty() method. The javascript hasOwnProperty method wll return true or false depending if the object has the property or not.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: