--- title: 빼기 (-) slug: Web/JavaScript/Reference/Operators/Subtraction tags: - JavaScript - Language feature - Operator - Reference browser-compat: javascript.operators.subtraction translation_of: Web/JavaScript/Reference/Operators/Subtraction ---
빼기 연산자(-
)는 두 연산자의 차이를 구합니다.
x - y
5 - 3 // 2 3 - 5 // -2
'foo' - 3 // NaN
{{Compat}}