Skip to content

Instantly share code, notes, and snippets.

Created August 21, 2012 05:33
Show Gist options
  • Save anonymous/3412181 to your computer and use it in GitHub Desktop.
Save anonymous/3412181 to your computer and use it in GitHub Desktop.
created by livecoding - http://livecoding.io
<h1>Hello. I am a title.</h1>
<ul>
</ul>
// create list of fruit
var fruits = [
'banana',
'orange',
'red',
'blueberry'
];
// add fruits to ul
for (var i = 0; i < fruits.length; i++) {
var li = $('<li></li>');
li.text(fruits[i]);
$('ul').append(li);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment