Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement