JSFiddle - React, Tailwind, and code Playground

HTML

<a id="foo">ödeme yap</a>

<script type="text/javascript">
    /* artik en azindan kullanici bir yanlis oldugunu biliyor */
    window.onerror = function(message, url, lineNumber) {
        alert(url + " dosyasında + " + lineNumber + ".satırda bir hata oluştu : " + message);
    };
    
    $("#foo").click(function () {
        boyleBirMethodYok();
    });
</script>