Well done!
You have completed Managing Data and Async Code Quiz!
Quiz Question 1 of 4
Assuming getInfo()
is an asynchronous function, what’s wrong with the following code?
app.get('/people', async (req, res) => {
const people = getInfo();
res.json(people);
});
Choose the correct answer below: