Guest User

Untitled

a guest
Mar 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. // String Drills
  2. function wisePerson(wiseType, whatToSay) {
  3. return `A wise ${wiseType} once said: "${whatToSay}".`;
  4. }
  5.  
  6. function shouter(whatToShout) {
  7. return `${whatToShout.toUpperCase()}!!!`;
  8. }
  9.  
  10. function textNormalizer(text) {
  11. return text.toLowerCase().trim();
  12. }
  13.  
  14.  
  15. // Number Drills
  16. function computeArea(width, height) {
  17. return width * height;
  18. }
  19.  
  20. function celsToFahr(celsTemp) {
  21. return celsTemp * (9/5) + 32;
  22. }
  23.  
  24. function fahrToCels(fahrTemp) {
  25. return (fahrTemp - 32) * (9/5);
  26. }
  27.  
  28. function isDivisible(divisee, divisor) {
  29. return divisee % divisor === 0;
  30. }
Add Comment
Please, Sign In to add comment