Assignment - Variables, Data Types, Operators,
-
Create two variables: One that holds a new user input (some number of
your choice) and another which has no value at first(e.g. "outcome").
-
Set the outcome variable to 10 plus the value stored in user input.
-
Add three additional lines of code where you change the outcome variable
again (by subtracting a value of your choice, multiplying it and
dividing it).
-
Think about the value stored in the user input variable you also created
- did that value change?
-
alert() the outcome and the user input variables (in two
separate alert() calls).