![]() And there are still many scripts that use it.Īs we know already, new F() creates a new object. It was one of the core features of the language.īut in the old times, there was another (and the only) way to set it: to use a "prototype" property of the constructor function. JavaScript has had prototypal inheritance from the beginning. In modern JavaScript we can set a prototype using _proto_, as described in the previous article.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |