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 | 31 |
Tags
- S3
- 백준
- 디비
- AWS
- node
- 데이터베이스
- 보안
- 자바스크립트
- 알고리즘
- DB
- 컴퓨터 보안
- 스프링부트
- access control
- node.js
- 컴퓨터보안
- 백트래킹
- OS
- 되추적
- ES6
- 탐욕기법
- 인터럽트
- API문서
- 병행제어
- 운영체제
- 노드
- IT
- DATABASE
- NEST
- 컴퓨터
- rest docs
Archives
- Today
- Total
목록async/await (1)
개발스토리
ES6(3)
클래스 클래스 문법도 추가되었다. 하지만 다른 언어처럼 클래스 기반으로 동작하는 것이 아니라 여전히 프로토타입 기반으로 동작한다. 프로토타입 기반 문법을 보기 좋게 클래스로 바꾼 것이라고 이해하면 된다. 다음은 프로토타입 상속 예제 코드이다. var Human = function(type){ this.type = type || 'human'; }; Human.isHuman = function(human){ return human is instanceof Human; } Human.prototype.breathe = function(){ alert('h-a-a-a-m'); }; var Zero = function(type, firstName, lastName){ Human.apply(this, argume..
node.js
2020. 12. 4. 01:44