You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
new - 객체 지향 프로그래밍과 어떻게 연관되어 있는지 숙지합니다. 함수가 new와 함께 호출될 때 어떤 일이 일어나는 지 알아야 합니다. new를 이용해 상속할 때 함수의 프로토타입 속성을 통해 객체가 생성되는 방식을 이해합니다.
Prototypes & Inheritance - 자바스크립트의 [[Prototype]] 속성을 통한 상속 체인을 이해합니다. 함수와 객체를 통해 상속을 설정하는 방법과 new 키워드가 그 과정을 어떻게 도와주는지 이해합니다. __proto __와 prototype 속성이 무엇이고 무슨 역할을 하는지 알아야 합니다.
new
new 개요
new 연산자는 객체를 만들고 초기화합니다. new 키워드 다음에는 반드시 함수 호출문이 와야하고 이때 호출되는 함수를 생성자라고 합니다.