웹표준/HTML
웹표준 html,css,javascript 실무 과정 자료] prototype 기능 사용
행복한짱짱이
2017. 5. 2. 19:46
웹표준 html,css,javascript 실무 과정 자료] prototype 기능 사용
웹표준 html,css,javascript 실무 과정 자료] prototype 기능 사용
실무개발자를위한 실무교육 전문교육센터학원
www.oraclejava.co.kr에 오시면 보다 다양한 강좌를 보실 수 있습니다.
prototype 기능 사용
■기존의 사용자 정의 객체에 새로운 메서드를 추가하는 방법
- 기존의 기능에 새로운 기능을 추가하는 유연한 방법
Person.prototype.fullNameReverse = function() {
return this.last + " " + this.first;
};
console.log(b.fullNameReverse());