Category: Math
Subtracts two numbers.
All programming languages support the basic arithmetic operations of addition, subtraction, multiplication and division of numbers.
// Subtract two numbers. console.log(3-5); var x=3; var y=5; console.log(x-y);
Found a bug in the documentation? Let us know at documentation@code.org
value1 - value2
Name | Type | Required? | Description |
---|---|---|---|
Name | any | The operands can be a number, or a variable containing a number, or the number returned by a function, or the numeric result of the evaluation of an expression. |
The difference of two numbers.
Found a bug in the documentation? Let us know at documentation@code.org