Created
August 14, 2016 18:45
-
-
Save anonymous/9ca5f853107c5dfc7a411d578229fcb9 to your computer and use it in GitHub Desktop.
JS Bin // source https://jsbin.com/dokamu
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> | |
var x; | |
var result; | |
/* YOUR CODE HERE */ | |
if (x%3 === 0 && x%5 === 0) { | |
result = "fizzbuzz"; | |
} else if (x%3 === 0) { | |
result = "fizz"; | |
} else if (x%5 === 0) { | |
result = "buzz"; | |
} else { | |
result = x | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">var x; | |
var result; | |
/* YOUR CODE HERE */ | |
if (x%3 === 0 && x%5 === 0) { | |
result = "fizzbuzz"; | |
} else if (x%3 === 0) { | |
result = "fizz"; | |
} else if (x%5 === 0) { | |
result = "buzz"; | |
} else { | |
result = x | |
}</script></body> | |
</html> |
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
var x; | |
var result; | |
/* YOUR CODE HERE */ | |
if (x%3 === 0 && x%5 === 0) { | |
result = "fizzbuzz"; | |
} else if (x%3 === 0) { | |
result = "fizz"; | |
} else if (x%5 === 0) { | |
result = "buzz"; | |
} else { | |
result = x | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment