Synchronous and Asynchronous JavaScript
Brief Introduction 🧵
Brief Introduction 🧵
Synchronous Javascript:
Synchronous basically means to be in sequence
so you got the idea that in a Synchronous way every statement of the code will execute one by one
Synchronous basically means to be in sequence
so you got the idea that in a Synchronous way every statement of the code will execute one by one
It will print the I and Javascript at the moment without waiting for the second statement to finish their execution
and after 2 seconds, the second statement will get executed.
This is how Asynchronous Javascript works.
and after 2 seconds, the second statement will get executed.
This is how Asynchronous Javascript works.
جاري تحميل الاقتراحات...