강의

멘토링

커뮤니티

Inflearn Community Q&A

yundosa2's profile image
yundosa2

asked

JS Sniper Training School that Snipes Coding Interviews

Inheriting like a class in ES5 < Subtype & Supertype >

prototype.constructor 를 꼭 설정해주어야 하는 이유가 뭔가요?

Written on

·

244

0

코드를 돌려 봤을 때 constructor를 설정해주지 않아도 taste() 와 flavor() 메소드가 정상적으로 실행되는 것으로 확인했습니다.

 

prototype.constructor 를 꼭 설정해줘야한다면 그 이유가 뭔지 궁금하고, 설정해주지 않았을 때 생기는 문제점이 궁금합니다!

코테 준비 같이 해요! javascript

Answer

This question is waiting for answers
Be the first to answer!
yundosa2's profile image
yundosa2

asked

Ask a question