Skip to content

Instantly share code, notes, and snippets.

Created February 2, 2016 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/b13545318311024c0d36 to your computer and use it in GitHub Desktop.
Save anonymous/b13545318311024c0d36 to your computer and use it in GitHub Desktop.
JS Bin // source http://jsbin.com/cexeka
<!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 pizzaForLunch = true; // boolean data type! true or false, that's it
var tacosForLunch = true;
if (pizzaForLunch) {
console.log("I am happy!");
} else if (tacosForLunch) {
console.log("yay!");
} else {
console.log("nooo")
}
</script>
<script id="jsbin-source-javascript" type="text/javascript">var pizzaForLunch = true; // boolean data type! true or false, that's it
var tacosForLunch = true;
if (pizzaForLunch) {
console.log("I am happy!");
} else if (tacosForLunch) {
console.log("yay!");
} else {
console.log("nooo")
}
</script></body>
</html>
var pizzaForLunch = true; // boolean data type! true or false, that's it
var tacosForLunch = true;
if (pizzaForLunch) {
console.log("I am happy!");
} else if (tacosForLunch) {
console.log("yay!");
} else {
console.log("nooo")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment