Subtract One Number from Another with JavaScript


We can also subtract one number from another.

JavaScript uses the - symbol for subtraction.

Example

myVar = 12 - 6; // assigned 6

Instructions

Change the 0 so the difference is 12.