JSFiddle - React, Tailwind, and code Playground

by Jonatas Piazzi

JavaScript

async function test() {
  try {
  	var a = await fetch('www.google.com');
    
    console.log("ok", a);
  }
  catch(ex) {
  	console.log("error", ex);
  }
}

test();