[JS] 함수의 prototype 프로퍼티
프로퍼티 설명 prototype - 모든 함수는 prototype 프로퍼티를 갖는다. - 함수의 prototype은 constructor 프로퍼티 하나만 있는 객체를 가리킨다. - constructor은 함수 자신을 가리킨다. function Rabbit(){ // prototype = {constructor: Rabbit}; } 프로퍼티 설명 [[Prototype]] - 객체는 명세서에서 명명한 [[Prototype]]이라는 숨김 프로퍼티를 갖는다. - 생성자 함수로 만든 객체인 경우, 생성자 함수의 prototype 프로퍼티에 연결된 객체의 값을 [[Prototype]]에 연결한다. let animal = { eats: true }; function Rabbit(name) { this.name = n..
이론/JS
2021. 2. 9. 12:53
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- __proto__
- @font-face
- 동등 연산자
- 동치 연산자
- 점 표기법
- offsetHeight
- offsetTop
- 일치 연산자
- clinetTop
- constructor
- property
- outerHeight
- 객체의 프로퍼티
- 대괄포 표기법
- 부등 연산자
- prototype 프로퍼티
- scrollHeight
- [[Prototype]]
- scrollTop
- innerHeight
- clientHeight
- 링크막기 #a링크막기
- javascript class
- 불일치 연산자
- 프로퍼티
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
글 보관함