Skip to content

Instantly share code, notes, and snippets.

@jsjoeio
Created January 24, 2018 03:42
Show Gist options
  • Save jsjoeio/d9517f93a29f11c3227d92a5e39eaa5a to your computer and use it in GitHub Desktop.
Save jsjoeio/d9517f93a29f11c3227d92a5e39eaa5a to your computer and use it in GitHub Desktop.
Thinkful - Number drills
function computeArea(width, height) {
return width * height;
}
function celsToFahr(celsTemp) {
// your code here
return celsTemp * (9/5) + 32;
}
function fahrToCels(fahrTemp) {
// your code here
return (fahrTemp - 32) * (9/5);
}
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