Asynchronous vs Synchronous Code

Published: 15 April 2021
on channel: A shot of code
319
24

Javascript is asynchronous but what does this mean and why is it particularily suited to website development. In this tutorial we look at the difference between code running asynchrounously as compared to synchronoulsy.
When dealing with tasks that may take some time and are being performed outside of our environment say a Network call or a Database call we don't really wont to sit there waiting for it to complete - rather we would like it to tell us once done and in the meantime we can carry on with any other tasks we have pending - this is asynchronous code in a nutshell and is why even though Javascript is single threaded it is very good at dealing with all these tasks seemingly at the same time.


Watch video Asynchronous vs Synchronous Code online without registration, duration hours minute second in high quality. This video was added by user A shot of code 15 April 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 31 once and liked it 2 people.