function async fetchJSON(url) { 
  const result = await ajax(url);
  const el = document.getElementById('js-results');
  const resultParsed = JSON.parse(result);
  const elList = document.createElement('ul');
  
  el.appendChild(elList);
  
  resultParsed.forEach((item) => {
    elList.appendChild(document.createElement('li').appendChild(item));
  }); 
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.