DEV Community

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

vberen profile image
Nicklas Wessel

When I hear "Web API" I would not think of the API in a framework or the browser. I would probably think of some remote API instead that I can call over the web. Http/https.

So to recap, and this is my opinion ofc.
A web API is remote and would usually require a http/https call to use.
An API is some framework or interface that does not require any remote calls to access

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".

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.