const heropy = new User('Heropy', 'Park') User.prototype.getFullName = function () { return `${this.firstName} ${this.lastName} }
this 어려움 일반(Normal) 함수는 호출 위치에서 따라 this 정의. 화살표(Arrow0 함수는 자신이 선언된 함수 범위에서 this 정의.
ES6 Classes
그만 똑똑해...!!
그만 똑똑해...!!