🫠 선형자료구조 - 프로토타입에 대하여 아래와 같이 정리하였다. 🫠 프로토타입이란? > 객체의 모태가 되는 원형 > js는 프로토타입을 이용한 복사를 통해 새로운 객체를 생성 > 정의 방법 : 속성 - 생성자, 메서드 - 프로토타입 /* 프로토타입 */ // 객체 생성 정의 function Person(name, age, weigth, heigth){ this.name = name this.age = age this.weigth = weigth this.heigth = heigth } // prototype을 이용한 Person 메서드 정의(1) Person.prototype.isAdult = function(){ return this.age > 18 } // prototype을 이용한 Person 메서..