Async/Await Syntax in JavaScript

49.1% Acceptance

In this lab, you will learn and practice working with async/await syntax introduced in ES2017. Async/await is a cleaner way to work with asynchronous JavaScript code, especially when dealing with promises. Your task is to create a function that returns a promise and uses async/await syntax. You will also handle errors using try-catch blocks and export the created function as a named export.