"prototype" in Javascript methods?

Hello!
what is the meaning of the prototype prefix to Javascript methods? (es. Object.prototype.hasOwnProperty()) .

I did the scripts lessons without using prototype so far… I don’t understand the difference…

thank you!

Here is a chapter from YDKJS, the book every camper must read (free to read online): https://github.com/getify/You-Dont-Know-JS/blob/master/this%20%26%20object%20prototypes/ch5.md

1 Like

I think Kyle Simpson’s explanation for prototypes is excellent.

He has an advanced JavaScript course on Pluralsite you should watch: https://www.pluralsight.com/courses/advanced-javascript

thanks @jenovs @gwenf, i’ll check it out :slight_smile: