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/addition/index.html | 86 ++++++++++------------ 1 file changed, 40 insertions(+), 46 deletions(-) (limited to 'files/ko/web/javascript/reference/operators/addition') diff --git a/files/ko/web/javascript/reference/operators/addition/index.html b/files/ko/web/javascript/reference/operators/addition/index.html index 0a624fdd16..0cc793a775 100644 --- a/files/ko/web/javascript/reference/operators/addition/index.html +++ b/files/ko/web/javascript/reference/operators/addition/index.html @@ -1,77 +1,71 @@ --- -title: Addition (+) +title: 더하기 (+) slug: Web/JavaScript/Reference/Operators/Addition +tags: + - JavaScript + - Language feature + - Operator + - Reference +browser-compat: javascript.operators.addition translation_of: Web/JavaScript/Reference/Operators/Addition --- +
{{jsSidebar("Operators")}}
-

증가 연산자addition operator (+)는 숫자 또는 여러 문자열의 더합니다.

+

더하기 연산자(+)는 숫자 피연산자의 합을 구하거나, 문자열을 서로 연결합니다.

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

Syntax

+

구문

-
Operator: x + y
-
+
x + y
-

Examples

+

예제

-

Numeric addition

+

덧셈

-
// Number + Number -> addition
+
+// Number + Number -> 덧셈
 1 + 2 // 3
-
-// Boolean + Number -> addition
+  
+// Boolean + Number -> 덧셈
 true + 1 // 2
 
-// Boolean + Boolean -> addition
-false + false // 0
-
+// Boolean + Boolean -> 덧셈 +false + false // 0
-

String concatenation

+

문자열 연결

-
// String + String -> concatenation
+
+// String + String -> 연결
 'foo' + 'bar' // "foobar"
 
-// Number + String -> concatenation
+// Number + String -> 연결
 5 + 'foo' // "5foo"
 
-// String + Boolean -> concatenation
+// String + Boolean -> 연결
 'foo' + false // "foofalse"
-

Specifications

- - - - - - - - - - -
Specification
{{SpecName('ESDraft', '#sec-addition-operator-plus', 'Addition operator')}}
- -

Browser compatibility

+

명세

+{{Specifications}} +

브라우저 호환성

-

{{Compat("javascript.operators.addition")}}

+

{{Compat}}

-

See also

+

같이 보기

-- cgit v1.2.3-54-g00ecf