MCPcopy Create free account
hub / github.com/PhilopaterHany/JavaScript-Bootcamp / readData

Function readData

Lessons/Week 22/186 - Await & Training.js:15–21  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13});
14
15async function readData() {
16 console.log("Before Promise");
17 // myPromise.then((resolvedValue) => console.log(resolvedValue));
18 // console.log(await myPromise);
19 console.log(await myPromise.catch((err) => err));
20 console.log("After Promise");
21}
22
23readData();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected