var names = [ "Singwing", "Brianna","Baba"]; var result; var name = ""; document.write("<ul>"); for(var i=0; i<names.length; i++){ name = names[i]; document.write("<li>"+name+"</li>"); } document.write("</ul>");