prototype object (1) 썸네일형 리스트형 prototype에 대하여... 자바스크립트의 proto타입에 대해서 1 2 3 let elemeent = {lastname : "manho"}; elemeent.prototype.nowname = "minjae"; console.log(element.nowname) cs 위 결과는 어떻게 나올거라고 생각하는가? 결과는 이렇다... TypeError가 나오면서 nowname이라는 property가 없다고 나온다. Prototype의 종류에는 Prototype Object 와 Prototype Link가 있다. 그럼 이둘이 무엇인지 살펴보도록 하자.. Prototype Object 설명하기에 앞서 어떤것이 객체인지 알 필요성이 있다. 1 2 3 4 let object = function() { } console.log(object); l.. 이전 1 다음