Created
August 29, 2017 17:20
-
-
Save joeyfboone/902304505a49aa941ae69a379173ac74 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> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
</head> | |
<body> | |
<div></div> | |
<script> | |
for (var i = 1; i <= 100; i++) { | |
if(i%5==0 && i%3==0){ | |
console.log("Fizz Buzz") | |
}else if(i%5==0){ | |
console.log("Buzz"+i) | |
}else if(i%3==0){console.log("Fizz"+i) | |
}else console.log (i); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment