Skip to content

Instantly share code, notes, and snippets.

@mklabs
Created October 13, 2010 13:03
Show Gist options
  • Save mklabs/623990 to your computer and use it in GitHub Desktop.
Save mklabs/623990 to your computer and use it in GitHub Desktop.
// 9: how would you improve the following code?
for (i = 0; i <= 100; i++) {
$('#thinger').append('<p><span class="thinger">i am thinger ' + i + '</span></p>');
$('#gizmo').append('<p><span class="gizmo">i am gizmo ' + i + '</span></p>');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment