

Hint:
Create async/await function to execute properly and also array variable is already declared as output
So push Result or Error (key/value pair of object) in output variable of multiple queries and also call function after creation
Example:
async function getData () {
try {
let data = await ##QUERY##
output.push({Result:data})
} catch (ex) {
output.push({Error:ex.message})
}
}getData();