JavaScript Object-Oriented Programming
Life-Coding class Link: https://opentutorials.org/module/4047/24629
prototype vs __proto__ - JavaScript Object-Oriented Programming
Class intro: let's look at the keys that unlock JavaScript's secrets — prototype and __proto__. Lecture
opentutorials.org
13. prototype and __proto__
0. First,
0-1. JavaScript is called prototype-oriented or instance-based programming.
Prototype-based Programming - Wikipedia
Wikipedia, the free encyclopedia. Prototype-based programming is a branch of OOP that has no classes and, unlike class-based inheritance, can reuse an object's behavior by treating an object as a prototype and cloning it. It is also called class-less, prototype-oriented, or instance-based programming.
ko.wikipedia.org
0-2. A property is a characteristic of the given object. A property basically holds a value like a variable, and when that value is related to another value, we call it a property.
0-3. Properties store data for the object. Methods are the actions the object can be asked to perform.
[JavaScript] What is a property?
property?! When studying JavaScript you hear the word "property" often. If property...
blog.naver.com
1. A function is an object in JavaScript.
Because of that, it can have properties.
function Person(){} = var Person = new function();
When you define a function, an object is created. And automatically, along with the defined function, its prototype object is also created.
The object of the defined function and its prototype object reference each other via their internal functions (prototype, constructor).
