Why do I never see the prototype property in JavaScript code I edit, from books and documentation I’ve read, it seems to be a cornerstone of the language.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
in the work i’ve done,
prototypeusually gets abandoned in favor of closure methods defined within the constructor so I can have private members in my javascript class. i’m aware thatprototypemay serve a purpose when setting up inherited classes but i’ve never needed to approach that level of complexity.