Skip to content

Commit

Permalink
ADD: 6-4
Browse files Browse the repository at this point in the history
  • Loading branch information
Leejha committed Jun 25, 2023
1 parent 002993a commit 8b91cdf
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ch06/6-4.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# 6-4 constructor 프로퍼티

생성자 함수의 prototype 내부에는 constructor 라는 프로퍼티가 있다.

![그림-7](https://github.com/inu-appcenter/core-javascript-study/blob/main/ch06/images/6-4-1.png?raw=true "그림-7")

생성자 함수 prototype의 constructor는 자기 자신을 가리키고, 인스턴스 proto의 constructor는 자신의 생성자 함수를 가리킨다.

즉 constructor는 생성자 함수를 가리키는 프로퍼티이다.

![그림-8](https://github.com/inu-appcenter/core-javascript-study/blob/main/ch06/images/6-4-2.png?raw=true "그림-8")
Binary file added ch06/images/6-4-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ch06/images/6-4-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b91cdf

Please sign in to comment.