Skip to content

Instantly share code, notes, and snippets.

@schamblee
Created January 19, 2018 16:57
Show Gist options
  • Save schamblee/451f78f26c476cc8382f73f9eb904892 to your computer and use it in GitHub Desktop.
Save schamblee/451f78f26c476cc8382f73f9eb904892 to your computer and use it in GitHub Desktop.
function computeArea(width, height) {
return width * height;
}
function celsToFahr(celsTemp) {
return celsTemp * 1.8 + 32;
}
function fahrToCels(fahrTemp) {
return (fahrTemp - 32) * 1.8;
}
function isDivisible(divisee, divisor) {
if (divisee % divisor === 0) {
return true;
} else {
return false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment