Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Build an HTML list from a JS array
var arr = ['item 1', 'item 2', 'item 3'];
var list = '<ul><li>' + arr.join('</li><li>') + '</li></ul>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment