Created
May 29, 2018 04:31
-
-
Save caitfriedlander/57ee0bae9d7b834bb5cfd685ee7dd9c7 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/batuvan
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"> | |
// Write your code below | |
var x = 35 | |
if (x%3 === 0 && x%5 === 0) { | |
console.log("fizzbuzz"); | |
} else if (x%3 === 0) { | |
console.log("fizz"); | |
} else if (x%5 === 0) { | |
console.log("buzz"); | |
} else { | |
console.log(x); | |
} | |
</script> | |
<script id="jsbin-source-javascript" type="text/javascript">// Write your code below | |
var x = 35 | |
if (x%3 === 0 && x%5 === 0) { | |
console.log("fizzbuzz"); | |
} else if (x%3 === 0) { | |
console.log("fizz"); | |
} else if (x%5 === 0) { | |
console.log("buzz"); | |
} else { | |
console.log(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
// Write your code below | |
var x = 35 | |
if (x%3 === 0 && x%5 === 0) { | |
console.log("fizzbuzz"); | |
} else if (x%3 === 0) { | |
console.log("fizz"); | |
} else if (x%5 === 0) { | |
console.log("buzz"); | |
} else { | |
console.log(x); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment