Skip to content

Instantly share code, notes, and snippets.

@dydx
Created November 18, 2015 01:40
Show Gist options
  • Save dydx/353bb4fdbfd1e5b0ac0d to your computer and use it in GitHub Desktop.
Save dydx/353bb4fdbfd1e5b0ac0d to your computer and use it in GitHub Desktop.
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