M
M
Maks Burkov2017-09-23 04:10:13
JavaScript
Maks Burkov, 2017-09-23 04:10:13

Asynchronous js, how to create asynchronous code?

Hello . I want to understand how asynchronization works to the end, for this I decided to create a plugin that will be called asynchronously, I can’t find examples for calling methods asynchronously. Who can help ?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vladlen Hellsite, 2017-09-23
@Maks00088

In browser javascript, a large number of operations are synchronous, an example of asynchronous operations is XMLHttpRequest, Fetch, setTimeout & etc. It's simple, callback is called when it's ready.

A
abberati, 2017-09-23
@abberati

here is a man who answers your question very sincerely and sensibly.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question