Skip to content

Instantly share code, notes, and snippets.

@SeongUgJung
Created November 17, 2015 08:49
Show Gist options
  • Save SeongUgJung/87b8fa877c4e946dbfaa to your computer and use it in GitHub Desktop.
Save SeongUgJung/87b8fa877c4e946dbfaa to your computer and use it in GitHub Desktop.
test_javascript_loop
<!DOCTYPE html>
<html>
<body>
<p id="demo"></p>
<script>
var i = 10;
while (--i) {
document.getElementById("demo").innerHTML += i + "<br>";
}
</script>
</body>
</html>
var i = 10;
while (--i) {
document.getElementById("demo").innerHTML += i + "<br>";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment