The function `hasProperty` in `objects.js` does not work for all objects, only those with just a name and age property
The function
hasPropertyinobjects.jsdoes not work for all objects, only those with just a name and age property