I think the key sentence in LeeGoing's lecture was below *Coding has developed in the direction of reducing repetition and reducing mistakes and server resources (It's not exactly the same sentence, but I understood it.) The history of coding seems to be a continuation of reducing the same content to reduce repetition Can I say that the JavaScript concepts below have developed into a form in which a small concept (1) falls within a larger concept (7)?
Are functions (2) and later (3 to 7) just called in each other and used according to their characteristics without larger or smaller concepts?
I want to organize it by reading books and listening to Shoko lectures in the JavaScript course ^^ Can anyone explain it in part?
javascript
About Array Object Creator Prototype and Inheritance?
First, I think it would be good to borrow an object-oriented book written in JS from the library
If you want to make something, do you usually have a blueprint?
ECMA5 JS, of course, doesn't have a class, but in object orientation,
The class corresponds to a blueprint, and the object is made according to that blueprint
This is how you materialize (instantify) a class to create an object (instance), where the constructor creates the object
to create such things
The prototype... is a special concept that only JS has You have to dig deep to understand the structure. It's unique
JS is inherited through a prototype
When inheritance occurs, the child object is a function of the parent object or a property (primitive variable & object & substitution function)
You will be able to use it
(On the contrary, the parent object does not access the child object's properties.)
Usually, if you look inside an object, there are prototypes and __proto__
The prototype is the prototype that you own, and there's a constructor inside it, and this is the constructor
And in order to inherit, you connect your __proto__ to the parent object's prototype
In ECMA5, the function() statement is instantiated by itself (as an object without a class)
© 2024 OneMinuteCode. All rights reserved.