API, Promise, DOM
API - Application Programming Interface which is used to communicate between two software over the internet. API Calling fetch(url) .then((res) => res.json()) .then((data) here th
API - Application Programming Interface which is used to communicate between two software over the internet.
API Calling
fetch(url)
.then((res) => res.json())
.then((data)
here the fetch is fetching API url and convert the data into json
->JSON(Javascript Object Notation) - transmitting data between a server and a web application, text based and human readable format.
PROMISE
It act as an asynchronous result operations like success, rejected.
-> if the condition is success(.then)
-> if the cond is rejected(.catch)
DOM
-> Document Object Model is a programming interface that represents an HTML document as a tree of objects.
eg:
Document
│
(Root)
│
┌────────┴────────┐
│ │
│ │
Originally published by Dev.to WebDev. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.