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
- NextJS
- 객체
- 스파르타코딩클럽
- 자료구조
- multer
- coursera
- Linux
- docker
- Machine Learning
- Til
- 자바스크립트
- HTTP
- 러닝자바스크립트
- javascript
- Andrew Ng
- CSS
- ES6
- scope
- 개발공부
- reactnative
- React
- 리눅스
- nodejs
- 데이터전송
- 1일1문장
- Sequence
- 끈기
- 회고
- 클로저
- 우선순위
Archives
- Today
- Total
목록ES6 (1)
해나아부지 개발일지

JavaScript는 Prototype 기반의 언어이기 때문에 class라는 개념이 없었다. 사용자의 편의성을 위해 ES6(ECMA Script 2015)가 적용되고 작동원리는 똑같지만 class라는 키워드를 사용하여 조금 더 객체지향적으로 보이는 코딩을 할 수 있게 됐달까? class //ES5 function Car(model, company, year) { this.model = model this.company = company this.year = year } Car.prototype.start = function () { console.log(this.model + "가 출발합니다") } Car.prototype.stop = function () { console.log(this.model +..
Developers/OOP
2020. 8. 1. 23:48