29. So meta


Why do I have to write 'has own property' twice?!


I don't get it at all. Why do I have to type hasOwnProperty after the dot and once again in (" ")s?


Because you want to check if prototype of Object has own property called "hasOwnProperty".


You want to know if hasOwnProperty comes from Object.prototype, I believe.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.