Advertisement
Guest User

Untitled

a guest
Aug 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // 1
  2.  
  3. function computeArea(width, height) {
  4. return width * height;
  5. }
  6.  
  7. // 2
  8.  
  9. function celsToFahr(celsTemp) {
  10. return celsTemp * 9/5 + 32;
  11. }
  12.  
  13. function fahrToCels(fahrTemp) {
  14. return (fahrTemp - 32) * 5/9;
  15. }
  16.  
  17. //3
  18. function isDivisible(divisee, divisor) {
  19. if
  20. (divisee % divisor === 0) { return true
  21. }
  22. else {
  23. return false;
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement