Created
November 29, 2013 21:07
-
-
Save chukitow/7712025 to your computer and use it in GitHub Desktop.
Test Crowd
This file contains 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
<html> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript"> | |
for (var i = 1; i <= 100; i++) | |
{ | |
var mensaje = ""; | |
if(i%3==0) | |
{ | |
mensaje+="fizz" | |
} | |
if(i%5==0) | |
{ | |
mensaje+="buzz" | |
} | |
else if(i%3!=0 && i%5!=0) | |
{ | |
mensaje = i; | |
} | |
console.log(mensaje); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment