Skip to content

Instantly share code, notes, and snippets.

@crystalattice
Created December 28, 2017 19:52
Show Gist options
  • Save crystalattice/2160d0c5153da202439aa35781d517dc to your computer and use it in GitHub Desktop.
Save crystalattice/2160d0c5153da202439aa35781d517dc to your computer and use it in GitHub Desktop.
//Area
function computeArea(width, height) {
return width * height;
}
//Temp conversion
function celsToFahr(celsTemp) {
return (celsTemp * 9)/5 + 32;
}
function fahrToCels(fahrTemp) {
return (fahrTemp - 32) * 5/9;
}
//Division
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