Created
November 18, 2015 01:40
-
-
Save dydx/353bb4fdbfd1e5b0ac0d to your computer and use it in GitHub Desktop.
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
function sayHello(name) { | |
console.log(`Hello, ${name}`); | |
}; | |
function areBothEven(a, b) { | |
return ((a % 2 == 0) && (b % 2 == 0)) | |
} | |
function hotOrNot(temp) { | |
return (temp > 75) ? "hot" : "not" | |
} | |
function threeIfNull(num) { | |
if (typeof num === 'undefined') | |
return 3 | |
else | |
return num | |
} | |
function greatest(x, y, z) { | |
return Math.max(x, y, z) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment