Back to feed
Renewal·서른의 생활코딩

[Following Life-Coding] JavaScript OOP_13. prototype and __proto__

NS
normalstory
cover image

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.

https://ko.wikipedia.org/wiki/%ED%94%84%EB%A1%9C%ED%86%A0%ED%83%80%EC%9E%85_%EA%B8%B0%EB%B0%98_%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%98%EB%B0%8D

 

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 objectMethods are the actions the object can be asked to perform. 

https://m.blog.naver.com/PostView.nhn?blogId=magnking&logNo=220966405605&proxyReferer=https%3A%2F%2Fwww.google.com%2F 

 

[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). 

 

This English version was translated by Claude.

친절한 찰쓰씨
Written by
친절한 찰쓰씨

Pleasant Charles — UI/UX researcher at AIT. Keeping notes on design, planning, and slow days here since 2010.

More on the author's page

Keep reading

Renewal

Steadily, for the long haul, without burning out

Mar 31, 2026·9 min
Renewal

Tech-life balance

Feb 7, 2026·3 min
Renewal

Humanality, by Park Jeong-ryeol

Feb 7, 2026·11 min