JSFiddle - React, Tailwind, and code Playground

JavaScript

$.ajax({
    url: '/echo/json/',
    type: 'GET',
    beforeSend: function () {
        console.log("AJAX started");
    },
    success: function (data) {
        console.log("AJAX success");
    }
});
console.log("before alert");
alert("test");
console.log("after alert");
var a = 1 + 2;
var b = a * 3;
console.log("after complex calculations");