I’m newer to Javascript, and I was wondering what exactly a “prototype chain” is in regards to Javascript Object Notation? What would I use it for?
EDIT:
New Question:
What are prototypes in Javascript?
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.
Prototypes are a concept in JavaScript, but do not apply in JSON, which is purely a data transfer format. JSON is a subset of JavaScript literal syntax, and one of the things it does not allow is functions.
EDIT: There are existing questions, such as How does JavaScript .prototype work?, explaining how it works in JavaScript