From 187d4eb1e4784a944d28e22371ea08f39b538b27 Mon Sep 17 00:00:00 2001 From: alattalatta Date: Thu, 15 Jul 2021 14:44:07 +0900 Subject: Add/update arithmetic operators (#1329) * Update addition operator * Add subtraction operator * Add division operator * Add multiplication operator * Update remainder operator * Add exponentiation operator * Update operator names * Update link to bitwise XOR operator * Translate "Operator:" of syntax boxes * Sync with English --- .../reference/operators/subtraction/index.html | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 files/ko/web/javascript/reference/operators/subtraction/index.html (limited to 'files/ko/web/javascript/reference/operators/subtraction') diff --git a/files/ko/web/javascript/reference/operators/subtraction/index.html b/files/ko/web/javascript/reference/operators/subtraction/index.html new file mode 100644 index 0000000000..1be243033d --- /dev/null +++ b/files/ko/web/javascript/reference/operators/subtraction/index.html @@ -0,0 +1,56 @@ +--- +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 +--- + +
{{jsSidebar("Operators")}}
+ +

빼기 연산자(-)는 두 연산자의 차이를 구합니다.

+ +
{{EmbedInteractiveExample("pages/js/expressions-subtraction.html")}}
+ +

구문

+ +
x - y
+ +

예제

+ +

뺄셈

+ +
+5 - 3  // 2
+3 - 5  // -2
+
+ +

숫자가 아닌 경우

+ +
'foo' - 3 // NaN
+ +

명세

+ +{{Specifications}} + +

브라우저 호환성

+ +

{{Compat}}

+ +

같이 보기

+ + -- cgit v1.2.3-54-g00ecf