Callbacks,promises,async/await Javascript is a synchronous programming language.That means the Javascript engine executes one set of code at a time.If you have multiple tasks to be executed,they will have to wait until the first tasks are completed. But then there are tasks that take time off depend on some external code to complete.You don't need the user to keep looking at an empty or what might look like a none responsive task.Thats where call backs came in. But Es6 introduced a much cleaner code through promises.Things are changing everyday and so does Javascript.We now have async/await implementing this task. What happens with callbacks,promises or async await code is that the code is run in the background,allowing the next function call in the stack to be executed.Once the task running in the background produces a result, it's code is executed. This is called asynchronous programming.Sort of making Javascript appear to be performing multiple tasks at the same time. In this post,I show you the syntax for such processes. #callbackfunctions #promises #asyncawait #asynchrousprogramming (at Lilongwe, Malawi) https://www.instagram.com/p/B-FkUsPhR8i/?igshid=19qduldcn6fbs








