filmov
tv
Basic JavaScript (9/111) | Subtract One Number from Another with JavaScript | freeCodeCamp

Показать описание
Basic JavaScript (9/111) | Subtract One Number from Another with JavaScript | freeCodeCamp
We can also subtract one number from another.
JavaScript uses the - symbol for subtraction.
Example:
myVar = 12 - 6; // assigned 6
Change the 0 so the difference is 12.
We can also subtract one number from another.
JavaScript uses the - symbol for subtraction.
Example:
myVar = 12 - 6; // assigned 6
Change the 0 so the difference is 12.