JSFiddle - React, Tailwind, and code Playground
JavaScript
var moo = "cow noise";
$.ajax({
type: "GET",
url: "/",
data: "",
success: function(data){
//return the variable here
alert(moo);
}
});
var moo = "cow noise";
$.ajax({
type: "GET",
url: "/",
data: "",
success: function(data){
//return the variable here
alert(moo);
}
});