JSFiddle - React, Tailwind, and code Playground
JavaScript
var txt="";
try
{
testMethode(30);
}
catch(err)
{
txt="There was an error on this page.\n\n";
txt+="Error description: " + err.message + "\n\n";
txt+="Click OK to continue.\n\n";
alert(txt);
}