- (Subtraction)
- (Subtraction) is a JavaScript function in the Operators category. Subtracts numbers. The syntax is a - b. A typical example: 10 - 3 // 7. A close sibling is + (Addition), which adds numbers or concatenates strings. A close sibling is * (Multiplication), which multiplies numbers. A close sibling is === (Strict Equality), which strict equality. A close sibling is && (Logical AND), which both must be truthy. More about this category: Arithmetic, comparison, logical, bitwise operators. Related Operators methods: + (Addition), * (Multiplication), === (Strict Equality), && (Logical AND), || (Logical OR), ?? (Nullish Coalescing), ?. (Optional Chaining), typeof. This page is part of the free JS Reference documentation covering 1027+ methods, each with syntax, parameters, return values, examples, and common pitfalls. You can try - (Subtraction) immediately in the JavaScript playground, look up unfamiliar terms in the glossary, or return to the JS Reference homepage.