작성한 질문수
자바스크립트 중고급: 엔진 핵심
6. this와 prototype, this로 인스턴스 참조, this와 prototype, prototype 메소드 직접 호출
작성
·
164
0
this 강의 - call, bind 듣고 다시 보니 직접호출을
어떻게 하는지 알게 됐습니다. 직접 호출 방법 적어봅니다.
// call console.log(Book.prototype.getPoint.call(obj)); // bind console.log(Book.prototype.getPoint.bind(obj)());
답변 1
문법은 맞지만, bind()는 후속 코드를 작성해야 완전한 형태가 됩니다.