function Func1(name) {
var request = $.ajax({
url: "https://site.ru/",
type: "GET",
success: function (response) {
return response;
},
});
}
var func1 = Func1("name");
console.log(func1);
function Func1(name) {
var request = $.ajax({
url: "https://site.ru/",
type: "GET",
success: function (response) {
return response;
},
});
retun request;
}