0

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?

Rais Alam
  • 6,970
  • 12
  • 53
  • 84
Alex
  • 64,178
  • 48
  • 151
  • 180

1 Answers1

2

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

Community
  • 1
  • 1
Matthew Flaschen
  • 278,309
  • 50
  • 514
  • 539