JSFiddle - React, Tailwind, and code Playground

HTML

<!DOCTYPE HTML>
<html><head><meta charset="utf-8"> </head><body>
<script>

window.addEventListener("error",function(ex){
	let msg="error handler invoked! addEventListener";
	console.log(msg);
	alert(msg);
});
window.addEventListener("unhandledrejection", function (ex) {
  let msg="unhandledrejection handler invoked! addEventListener";
  console.log(msg);
  alert(msg);  
});


(async function(){
   let foo= ((await ( await fetch("/no_json_plz_i_want_an_error")).json()));
})()//.catch(function(error){ throw error; });

</script>
</body></html>