```js // much *much* better :) var myListHTML = document.getElementById("myList").innerHTML; for (var i = 0; i < 100; i++) { myListHTML += "<span>" + i + "</span>"; } ``` ~~String is immutable.~~ I can't tell the reason. All I know is this won't work.
String is immutable.I can't tell the reason. All I know is this won't work.