Assignment JS1: JavaScript Basics (Expressions and Assignment Statements)





Part 1: Evaluate each of the following expressions.




      1. 3 * (-5)
      2. 4 + 2 * 5 - 10
      3. 5 / 2
      4. Math.floor(5/2)
      5. 9 % 3
      6. -21 % -2
      7. 21 % -2
      8. 4 + 5 * 2 + 3
      9. (4 + 5) * 2 + 3
      10. 4 * 5 / 2 + 5 % 2
      11. -3 * (( 4 + 2 ) * 2.0 ) - 1
      12. 5 / (20 - (100 / 5))
      13. 1 % -2
      14. -3 % 8
      15. 4 * 3 / 4 + 12
      16. 1 + 25 % 5
      17. 1 % (6 % 3)
      18. 12 % 8 % 20 % 15