Javascript – Is this the new way to represent async/await without try-catch block
async function fetchData() { const [error, response] = await fetch('https://jsonplaceholder.typicode.com/todos/1') if (error) { console.log(error); return } const [e, data] = await response.json() if (e) { console.log(e); return } return data } fetchData() I came across a LinkedIn post showing this…