Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 범용 선택자
- 배열과 연결리스트의 차이
- 단방향 연결리스트
- for..of
- 일반 형제 선택자 결합
- Sort
- indexOf
- Array.from()
- 배열의 내림차순
- CSS
- 쌍방향 연결리스트
- innerhtml
- 고차함수
- 객체
- Em
- 인접 형제 선택자 결합
- Link
- 백준알고리즘
- 등차수열의 항 찾기
- invalid assignment left-hand side
- display : none
- map()
- 배열의 오름차순
- nth-child()
- 가상 요소 선택자
- filter()
- disabled
- visibility : hidden
- 양방향 연결리스트
- classList.contains(string)
Archives
- Today
- Total
목록프로토타입 (1)
프론트엔드 센트럴파크 (☞゚ヮ゚)☞

- 어떠한 객체가 만들어지기 위해 객체의 모태가 되는 원형 - 자바스크립트는 일반적인 객체지향 언어와는 다르게, 프로토타입을 이용한 복사를 통해 새로운 객체 생성 - 일반적인 객체 생성 방식 : 속성은 생성자, 메서드는 프로토타입에서 정의 // 생성자 속성 정의 function Person(name, age) { this.name = name; this.age = age; }; // prototype을 이용한 Person 메서드 정의 Person.prototype.isAdult = function() { return this.age > 18; }; // 객체 생성 const p1 = new Person("kitty", 22); const p2 = new Person("james", 18); console..
Javascript
2022. 7. 27. 18:09