Skip to content

Instantly share code, notes, and snippets.

@mcshakes
Created January 8, 2018 00:08
Show Gist options
  • Save mcshakes/7b30f82c1ae9ce9e206befc1343d824e to your computer and use it in GitHub Desktop.
Save mcshakes/7b30f82c1ae9ce9e206befc1343d824e to your computer and use it in GitHub Desktop.
AREA OF RECTANGLE
function computeArea(width, height) {
return width * height;
}
TEMPERATURE CONVERSION
function celsToFahr(celsTemp) {
return celsTemp * (9 / 5) + 32
}
function fahrToCels(fahrTemp) {
return (fahrTemp - 32) * (5/9)
}
IS DIVISIBLE
function isDivisible(divisee, divisor) {
if (divisee % divisor === 0) {
return true;
} else {
false;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment