javascript_생성자 함수
생성자함수 개요 객체 생성하기 function Student(name,korean){ this.이름 = name; this.국어 = korean; this.getSun = function () { return this.국어 + ...; } } var student = new Student('박종훈',100); 객체 배열 function Student(name,korean){ this.이름 = name; this.국어 = korean; this.getSun = function () { return this.국어 + ...; } } var students = []; student.push(new Student('박종훈',100); student.push(new Student('김종훈',100); 프로토타입 ..