Asynchronous vs Synchronous Code

Опубликовано: 15 Апрель 2021
на канале: 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.


Смотрите видео Asynchronous vs Synchronous Code онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь A shot of code 15 Апрель 2021, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 31 раз и оно понравилось 2 людям.