Skip to content

Instantly share code, notes, and snippets.

@unknownuser88
Created June 4, 2014 08:10
Show Gist options
  • Save unknownuser88/712555f2006d83ca8312 to your computer and use it in GitHub Desktop.
Save unknownuser88/712555f2006d83ca8312 to your computer and use it in GitHub Desktop.
The Fastest Way to Build a String
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