- (Subtraction) vs * (Multiplication)
- (Subtraction) and * (Multiplication) are both JavaScript Operators APIs, and choosing between them is a common point of confusion. This page compares their syntax, parameters, return values, and typical use cases so you can pick the right one. - (Subtraction): Subtracts numbers. Its syntax is a - b. * (Multiplication): Multiplies numbers. Its syntax is a * b. Example of - (Subtraction): 10 - 3 // 7. Example of * (Multiplication): 4 * 3 // 12. Read the full references for - (Subtraction) and * (Multiplication) to see edge cases, time complexity, browser support, and the mistakes developers most often make with each. Other Operators APIs worth comparing: + (Addition), === (Strict Equality), && (Logical AND), || (Logical OR), ?? (Nullish Coalescing), ?. (Optional Chaining). Both belong to the Operators category in the JS Reference documentation, which covers 39 entries in total.