как присвоить значения переменной oop javascript из ajax запроса ???
function getJSON(url) {
return $.ajax({
url: url,
type: 'get',
success: function(response){
response.w_v;
}
});
}
function Person(){
this.name = getJSON('proprieta_vetrina.php');
console.log(this.name);
}
const obj = new Person();
console.log(obj.name);