Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. /*
  2. * ASSIGNMENT BY RYOTA MITARAI
  3. * Pokemon Showdown & JavaScript Class
  4. * Day 2 - Basic Data Types
  5. * Post-Stream Assignments
  6. *
  7. * Discord Tag (Ryota Mitarai#7403).
  8. * Pokemon Showdown Username (Ryota Mitarai).
  9. * No Twitch username.
  10. */
  11.  
  12. 'use strict';
  13.  
  14. // First exercise
  15. console.log(`The solution for 2 + 7 is ${2 + 7}.`);
  16. console.log(`The solution for 8 * 11 is ${8 * 11}.`);
  17. console.log(`The solution for 5 - 14 is ${5 - 14}.`);
  18. console.log(`The solution for 80 / 9 is ${80 / 9}.`);
  19. console.log(`The solution for 6 * 4 + 18 is ${6 * 4 + 18}.`);
  20. console.log(`The solution for (12 - 2) / 5 is ${(12 - 2) / 5}.`);
  21. console.log(`The solution for 15 + 4 / 6 - 42 is ${15 + 4 / 6 - 42}.`);
  22. console.log(`The solution for (15 + 4) / (6 - 42) is ${(15 + 4) / (6 - 42)}.`);
  23.  
  24. // Second exercise
  25. let x = 4;
  26. console.log(`The solution to ${x} + 7 is ${x + 7}.`);
  27. x = 18;
  28. console.log(`The solution to 650 - ${x} is ${650 - x}.`);
  29. x = 105;
  30. console.log(`The solution to (${x} - 78) * 9 is ${(x - 78) * 9}.`);
  31. x = 1253;
  32. console.log(`The solution to ${x} * 101 / 4 is ${x * 101 / 4}.`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement