Hey. there is a code
if (data) { var list = jQuery('<ul />').attr('class', 'list-ul'); $("body").append(list); list.text(data); } if works if data arrives, but if I do
if(!data) { /// } that doesn't work. I also tried to compare data with the empty string "" , wrote data == "" and data === "" , nothing changes. How to correctly determine that the response did not receive data on the request.