开发者

What is a prototype chain in regards to JSON?

开发者 https://www.devze.com 2022-12-27 17:11 出处:网络
I\'m newer to Javascript, and I was wondering what exactly a \"prototype chain\" is in regards to Jav开发者_Go百科ascript Object Notation? What would I use it for?

I'm newer to Javascript, and I was wondering what exactly a "prototype chain" is in regards to Jav开发者_Go百科ascript Object Notation? What would I use it for?

EDIT:

New Question:

What are prototypes in Javascript?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号