why JS is async?
- JS is one of the main technologies for the WWW
- Initially was used to build websites, you would write code that the browser would execute
- when exchanging data between the server and the client, we don't want to wait until the server is done, we want to continue running our program.
Today we will talk before about callbacks, then about promises (introduced in ES6) and finally about async-await (introduced in ES8)
Let's talk about callbacks first. Do you know about any language that has