Streamline your JavaScript code with top-level await

Posted by bob on Nov 8, 2020 12:01 AM EDT
Opensource.com; By Sumaira Ahmad
Mail this story
Print this story

JavaScript is a popular programming language that started out as a single-threaded, synchronous language, meaning that one step runs after another step without waiting to fetch any external resources or perform any lengthy calculation or process. If the script requires such a resource or calculation, this synchronous behavior results in an error. This blocks all other processes in the queue from running whether or not they were dependent on the step that produced the error.

Full Story

  Nav
» Read more about: Story Type: Tutorial; Groups: Developer

« Return to the newswire homepage

This topic does not have any threads posted yet!

You cannot post until you login.