JSFiddle - React, Tailwind, and code Playground
JavaScript
async function test() {
try {
var a = await fetch('www.google.com');
console.log("ok", a);
}
catch(ex) {
console.log("error", ex);
}
}
test();
async function test() {
try {
var a = await fetch('www.google.com');
console.log("ok", a);
}
catch(ex) {
console.log("error", ex);
}
}
test();