반응형
function Student(name, korean, math, english, science){
this.이름 = name;
this.국어 = korean;
this.수학 = math;
this.영어 = english;
this.과학 = science;
}
Student.prototype.getSum = function(){};
Student.prototype.getAvarage = function(){};
Student.prototype.gettoString = function(){};반응형
'언어 > javascript' 카테고리의 다른 글
| javascript : 상속 (0) | 2020.12.10 |
|---|---|
| javascript : new 키워드 (0) | 2020.12.09 |
| javascript : instanceof (0) | 2020.12.09 |
| javascript : 메서드 생성 (0) | 2020.12.09 |
| javascript : 배열 복제 (0) | 2020.11.30 |