marykasp
6/6/2019 - 2:52 PM

numbers.js

//Area of a rectangle
function computeArea(width, height) {
  return width * height;
}

//Temperature conversion
function celsToFahr(celsTemp) {
  return (celsTemp * 9 / 5) + 32;
}

function fahrToCels(fahrTemp) {
  return (fahrTemp - 32) / 1.8;
}

//Is Divisible (no remainder, use modulo)
//return true if there is no remainder when divisse is divied by divisor
function isDivisible(divisee, divisor) {
  return divisee % divisor === 0;
}