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 |
Tags
- 알고리즘
- 개발자
- AWS
- Ref
- 실전프로젝트
- 리액트
- 파이어베이스
- Firebase
- 클론코딩
- javascript
- 카카오맵
- DoM
- CS스터디
- 에어비엔비
- 프론트엔드
- 항해99
- frontend
- til
- 미니프로젝트
- 프로그래머스
- Git
- 자바스크립트
- 네트워크
- 인스타그램
- python
- WIL
- react
- 리덕스
- 에러해결
- CS
Archives
- Today
- Total
목록classes (1)
개발스터디일지
똑같은 의미의 코드를 1.생성자함수(prototype) / 2. ES6 Classes 이용하여 만들면 아래와 같다. 생성자함수(prototype)를 이용 ES6 Classes 이용 function User(first, last) { this. firstName = first this. lastName = last } User.prototype.getFullName = function(){ return `${this.firstName} ${this.lastName}` } const grandma = new User(song, mino) console.log(grandma.getFullName()) //song mino Class User { constructor(first, last) { this.firs..
프론트엔드/Javascript
2022. 4. 12. 10:32