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

Function getData

Lessons/Week 22/185 - Async & Training.js:37–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35// );
36
37async function getData() {
38 let users = [];
39 if (users.length > 0) {
40 return "Users Found";
41 } else {
42 throw new Error("No Users Found");
43 }
44}
45
46console.log(getData());
47

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected