JSFiddle - React, Tailwind, and code Playground
JavaScript
var URL = ["http://www.google.com", "http://www.jquery.com"];
var str = "";
$.each(URL, function(index, fetch) {
$.ajax({
url: fetch,
dataType: "jsonp",
success: function (sourcecode) {
str += sourcecode;
}
});
});
console.log(str);