<ul id="userList"></ul>
var list = document.getElementById("userList");
var names = ["Joe", "Kim", "Dave", "Ron", "Bill"];
var html = "";
names.forEach(function(name) {
html += "<li>" + name + "</li>"
});
list.innerHTML = html;
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.