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
- generic
- reactnative
- 배열중복요소제거
- 스크롤이벤트
- async
- Spring
- set
- app:compiledebugkotlin
- javascript
- TS
- 안드로이드빌드에러
- extends
- app.post
- npm에러
- Next.js
- err_connection_refused
- react
- forwardref type
- 이진탐색
- map
- 타입스크립트
- 슬라이딩윈도우
- materialicons
- mainapplication.kt
- reactnative error
- 상속
- interface
- 리액트네이티브아이콘
- Filter
- array
Archives
- Today
- Total
목록Class (1)
rhanziy
JS - 객체, 배열의 객체지향 문법 상속기능 class
// 옛날방식 상속기능 const Student = function(name, age){ this.name = name, this.age = age } Student.prototype.sayHi = function(){ console.log(`안녕 나는 ${this.name}이야`); } let 학생1 = new Student('Kim', 20); 학생1.sayHi(); var arr = [1,2,3]; var arr2 = [3,6,8,3,2,5,7]; Array.prototype.remove3 = function(){ for(let i = 0; i < this.length; i++){ if(this[i] == 3){ this.splice(i,1); } } } arr.remove3(); arr2.remo..
Html_css_js
2022. 12. 22. 14:23