Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * ASSIGNMENT BY RYOTA MITARAI
- * Pokemon Showdown & JavaScript Class
- * Day 2 - Basic Data Types
- * Post-Stream Assignments
- *
- * Discord Tag (Ryota Mitarai#7403).
- * Pokemon Showdown Username (Ryota Mitarai).
- * No Twitch username.
- */
- 'use strict';
- // First exercise
- console.log(`The solution for 2 + 7 is ${2 + 7}.`);
- console.log(`The solution for 8 * 11 is ${8 * 11}.`);
- console.log(`The solution for 5 - 14 is ${5 - 14}.`);
- console.log(`The solution for 80 / 9 is ${80 / 9}.`);
- console.log(`The solution for 6 * 4 + 18 is ${6 * 4 + 18}.`);
- console.log(`The solution for (12 - 2) / 5 is ${(12 - 2) / 5}.`);
- console.log(`The solution for 15 + 4 / 6 - 42 is ${15 + 4 / 6 - 42}.`);
- console.log(`The solution for (15 + 4) / (6 - 42) is ${(15 + 4) / (6 - 42)}.`);
- // Second exercise
- let x = 4;
- console.log(`The solution to ${x} + 7 is ${x + 7}.`);
- x = 18;
- console.log(`The solution to 650 - ${x} is ${650 - x}.`);
- x = 105;
- console.log(`The solution to (${x} - 78) * 9 is ${(x - 78) * 9}.`);
- x = 1253;
- console.log(`The solution to ${x} * 101 / 4 is ${x * 101 / 4}.`);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement