DEV Community

Discussion on: JavaScript concepts I want to understand (JS event loop)

Collapse
lukaszahradnik profile image
Lukáš Zahradník • Edited on

Both are correct definitions of Web API, but each describes a different thing.

Aso I'm not sure I would include "third party libraries".

Collapse
jasterix profile image
Jasterix Author

Thanks! How would you describe Fetch and JSON?

Thread Thread
lukaszahradnik profile image
Lukáš Zahradník

Fetch - is a set of interfaces for managing fetching resources (sending requests).
Function fetch being part of this API, is a function that is used to start the fetching. Along with this function, there are few interfaces (for example Request interface) that are also part of this API.

JSON - format for storing data and is based on JavaScript. It's nothing really more than that.