constructor(생성자)contructor(생성자)를 이용하면 인스턴스화된 객체에서 다른 메서드를 호출하기 전에수행해야하는 사용자 지정 초기화를 제공할 수 있음 class User { construnctor(name) { this.name = name } sayHi() { alert(this.name) }}let user = new User("John")user.sayHi()클래스를 new를 붙여서 ( new User("John") ) 인스턴스객체로 생성하면넘겨받은 인수와 함께 construnctor가 먼저 실행됨이 때, 넘겨받은 인수인 John이 this.name에 할당됨 super super 키워드는 자식 클래스 내에서 부모 클래스의 생성자 or 메소드를 호출할 때..