Skip to content

Instantly share code, notes, and snippets.

@chukitow
Created November 29, 2013 21:07
Show Gist options
  • Save chukitow/7712025 to your computer and use it in GitHub Desktop.
Save chukitow/7712025 to your computer and use it in GitHub Desktop.
Test Crowd
<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