function Book() {
this.title = '';
this.setTitle = function(title) {
this.title = title;
}
}
나이 :
function Book() {
}
Book.prototype.title = '';
Book.prototype.setTitle = function(title) {
this.title = title;
}
구문 이외의 어떤 차이가 있나요?