Asynchronous JS

Callbacks

Promises
Arrow functions

Might be confusing

I didn't know this until 3rd year of college

Why are we learning this?

 

Very basic fundamentals

Rust traits/memory management analogy

Easier to sprint later if fundamentals are right

Asynchronous JS

Callbacks

Promises 🙍
Arrow functions 🙍

Already know this?

https://github.com/knadh/listmonk

Asynchronous

setTimeout

Flush the execution

setTimeout(fn, 0)

setInterval

Lets build a Stop watch

setInterval

Good question to have at this point

JS runtime

call stack, web apis, callback queue, event loop

Callback hell

Why promises?

Arrow functions

Next week

Deeper dive into Node.JS

HTTP Server introduction

Made with Slides.com