Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
25. 클래스
✏️ 기억에 남는 내용
클래스는
syntatic sugar
라고 보기보다는 새로운 객체 생성 메커니즘으로 보는 것이 합당하다.클래스 호이스팅
메서드
정적 메서드와 프로토타입 메서드의 차이
프로퍼티
#
를 이용해서 private 필드를 정의할 수 있다. 단, prevate 필드는 반드시 클래스 몸체에 정의해야 한다.상속
super 키워드 사용 주의사항
📝 간단한 퀴즈
클래스 내의 코드는 암묵적으로 strict mode가 적용된다. (O,X)
클래스와 생성자 함수의 차이 3가지를 적어보시오.
🧑🏻💻 연관 코드