Answer the question
In order to leave comments, you need to log in
JavaScript OOP, confused?
I read the book "JavaScript for Professionals: 2nd edition" and got completely confused. This book has presented a single pattern for creating code reuse, that is, OOP. here is an example of this template https://jsfiddle.net/7zn5ccgq/ The author wrote that the prototype property does not need to be climbed at all. As far as I know, when I started learning JavaScript, in all the documentation I read, including on learn.javascript.ru, they describe what is usually preferable to OOP in a prototypal style. But in what style as I usually write codepen.io/radum/pen/xICAB(this is not my code, just an example) And here is the author who created jQuery. Either while I was learning JavaScript, something changed in this regard, but I taught it so that I didn’t notice, or the creator of jquery went crazy, or I don’t understand anything at all ... Help please.
Answer the question
In order to leave comments, you need to log in
code reuse creation pattern i.e. oop
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question