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
- meatadata
- interface
- 페이지네이션
- 이진탐색
- Next.js
- TS
- Filter
- code-push-standalone
- xlsx-js-style
- 상속
- reactnative
- 글또10기x코드트리
- codepush
- 슬라이딩윈도우
- supabase 페이지네이션
- generic
- 타입스크립트
- array
- app.post
- map
- set
- Spring
- async
- javascript
- 스크롤이벤트
- 코드푸시
- supabase auth
- extends
- supabase authentication
- react
Archives
- Today
- Total
목록js상속 (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