JSFiddle - React, Tailwind, and code Playground
HTML
<script>
throw { type: 'error', message: '1'};
aaa.substring(1);
</script>
JavaScript
$(function(){
throw { type: 'error', message: '2'};
aaa.substring(1);
});
setTimeout(function(){
throw { type: 'error', message: '3'};
aaa.substring(1);
}, 5000)