JSFiddle - React, Tailwind, and code Playground

by skram

HTML

<script>
    window.onerror = function(msg, url, lineNo)  {
       alert(msg + '\n' + url + '\n Line No: ' + lineNo);
    }
</script>
<script>
    document.getElementById('test').asd = 123; //will throw an error
    
</script>

<script>    
    var s = [{]};
</script>

<script>
    throw "Custom Error";
</script>