일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- 페어프로그래밍
- reduce
- react
- 자료구조
- Til
- State
- 객체지향프로그래밍
- CLONE
- 수도코드
- props
- stack
- 깃헙
- JavaScript
- while
- 각자리수
- math.pow
- javascirpt
- github
- 함수선언식
- jsx
- 함수표현식
- pseudocode
- SUPER
- ReactDOM
- render
- ES6
- falsy
- pair
- 제곱함수
- 스택
Archives
- Today
- Total
목록ES6 (1)
강백호같은개발자
TIL(20/06/18) ES6 : class와 super in JavaScript
ES6 : class와 super in JavaScript ES5에서 클래스를 만들고 상속받는 상황을 코드로 한번 보자. var Human = function(name){ this.name = name; } Human.prototype.sleep = function(){ console.log(this.name + ' is sleeping...'); }; var steve = new Human('steve'); var Student = function(){ Human.call(this, name); // Human.apply(this. arguments) } Student.prototype = Object.create(Human.prototype); Student.prototype.constructor =..
- 배움은 개발을 거들뿐(TIL)
2020. 6. 18. 08:13