logo CodeStepByStep logo

expressions2

Language/Type: JavaScript expressions
Author: Melissa Hovik (on 2016/09/25)

Trace the evaluation of the following expressions, and give their resulting values. Make sure to give a value of the appropriate type (such as including a .0 at the end of a real number).

2 + 3 * 4 - 6
14 / 7 * 2 + 30 / 5 + 1
26 % 12 % 4 - 3
(238 - 13) / 25.0 - 10
2 + 19 % 5 - (11 * (5 / 2))
26 % 10 % 4 * 3
37 % 20 % 3 * 4
177 % 100 % 10 / 2
390 / 10 % 10 / 2
21 % 24 % 2 * 4
17 % 15 % 100 / 2
39 - 10 * 10 / 2

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.