This is a beta version of Practice-It. Give us feedback

logo Practice-It logo

variableMystery5

Language/Type: JavaScript expressions variable mystery
Author: Melissa Medsker-Galloway (on 2018/05/01)

What are the values of the variables one and two after the following code executes?

var one = 8;
var two = 19;
one = two + one;
two = one - two;
one = one * (two / 2);
one
two

You must log in before you can solve this problem.


Log In

If you do not understand how to solve a problem or why your solution doesn't work, please contact your TA or instructor.
If something seems wrong with the site (errors, slow performance, incorrect problems/tests, etc.), please

Is there a problem? Contact a site administrator.