Created
January 8, 2018 00:08
-
-
Save mcshakes/7b30f82c1ae9ce9e206befc1343d824e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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