JSFiddle - React, Tailwind, and code Playground
JavaScript
try {
a();
} catch(e) {
alert('problem calling function a(): ' + e);
};
try {
b();
} catch(e) {
alert('problem calling function b(): ' + e);
};
function a(){
alert('function a() called!');
};
var b = function(){
alert('function b() called');
};