More and more I see javascript that makes use of async/await: async function imperativeWay(color) {
try {
let resultsString = await fetch(color)
let jsonResults = JSON.parse(resultsString);
let transformedResults = transformFirst(jsonResults)
let sendResults = await sendToClient(transformedResults)
await remotelog('log', sendResults)
}
catch (e) {
remotelog('error', e)
}
}