ar4ipers,
function ajaxGet(s, url) {
let request = new XMLHttpRequest();
request.onreadystatechange = function () {
if (request.readyState == 4 && request.status == 200) {
let data = JSON.parse(request.responseText);
document.querySelector(".container").innerHTML = data.results.reduce(function(ul, el) {
return ul + "<li>" + el.name.first + " " + el.name.last
}, "<ul>");
}
}
request.open('GET', url);
request.send();
}