
프로퍼티 설명 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
- property
- prototype 프로퍼티
- offsetTop
- scrollTop
- 부등 연산자
- innerHeight
- 일치 연산자
- offsetHeight
- 동등 연산자
- 불일치 연산자
- clientHeight
- __proto__
- 객체의 프로퍼티
- 프로퍼티
- clinetTop
- 링크막기 #a링크막기
- 동치 연산자
- constructor
- [[Prototype]]
- @font-face
- javascript class
- scrollHeight
- 대괄포 표기법
- outerHeight
- 점 표기법
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함