Sunday, September 11, 2022

Asynchronous JavaScript, AJAX, APIs

https://habr.com/ru/company/timeweb/blog/583588/

https://medium.com/codingthesmartway-com-blog/create-a-rest-api-with-json-server-36da8680136d

https://developer.mozilla.org/en-US/docs/Web/Guide/AJAX

Synchronous code is executed line by line. Each line of code waits previous line finish.

Asynchronous code is executed after task that runs in the "background" finishes. Asynchronous code is non-blocking and do not wait for asynchronous task to finish its work => coordinates behavior of a program over a period of time.

Application programming interfaces allow applications to communicate with each other: DOM API, Geolocation API, Own Class API, free 3rd-party APIs... JSON - most popular API data format.

No comments:

Post a Comment