Created
March 12, 2010 15:55
-
-
Save tdouce/330457 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html> | |
<head> | |
<title>Untitled Document</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | |
<script type='text/javascript'> | |
function print(msg,x){ | |
document.write(msg,"<br/>"); | |
} | |
var mailArchive = ["mail one", "mail two", "mail three"]; | |
for (var current = 0; current < mailArchive.length; current++) | |
print(mailArchive[current]); /*Why does mailArchive[current] print out "mail one mail two mail three"? */ | |
</script> | |
</head> | |
<body> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment