JSFiddle - React, Tailwind, and code Playground

HTML

<div id="results"></div>

JavaScript

function jsonpTest(count) {
    //log("calling ajax " + count);
    $.ajax({
        url: "http://www.geonames.org/postalCodeLookupJSON?postalcode=10504&country=US",
        dataType: "json",
        success: function(data) {
            log("before debugger " + count);
            //debugger;
            log("after debugger " + count);
        }
    });
};

function log(txt) {
    $("#results").append("<br/>" + txt);

}

jsonTest(1);