diff options
author | alattalatta <urty5656@gmail.com> | 2021-07-15 14:44:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-15 14:44:07 +0900 |
commit | 187d4eb1e4784a944d28e22371ea08f39b538b27 (patch) | |
tree | 3d1e5e6469b9c8a8222c6d83d637fec8560f4f39 /files/ko/web/javascript/reference/operators/addition/index.html | |
parent | de8eddb11dd3ef1861950e712d7811723b8b95b1 (diff) | |
download | translated-content-187d4eb1e4784a944d28e22371ea08f39b538b27.tar.gz translated-content-187d4eb1e4784a944d28e22371ea08f39b538b27.tar.bz2 translated-content-187d4eb1e4784a944d28e22371ea08f39b538b27.zip |
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
Diffstat (limited to 'files/ko/web/javascript/reference/operators/addition/index.html')
-rw-r--r-- | files/ko/web/javascript/reference/operators/addition/index.html | 86 |
1 files changed, 40 insertions, 46 deletions
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 --- + <div>{{jsSidebar("Operators")}}</div> -<p>증가 연산자<sup>addition operator</sup> (<code>+</code>)는 숫자 또는 여러 문자열의 더합니다.</p> +<p>더하기 연산자(<code>+</code>)는 숫자 피연산자의 합을 구하거나, 문자열을 서로 연결합니다.</p> <div>{{EmbedInteractiveExample("pages/js/expressions-addition.html")}}</div> -<div></div> - - - -<h2 id="Syntax">Syntax</h2> +<h2 id="syntax">구문</h2> -<pre class="syntaxbox notranslate"><strong>Operator:</strong> <var>x</var> + <var>y</var> -</pre> +<pre class="brush: js">x + y</pre> -<h2 id="Examples">Examples</h2> +<h2 id="examples">예제</h2> -<h3 id="Numeric_addition">Numeric addition</h3> +<h3 id="numeric_addition">덧셈</h3> -<pre class="brush: js notranslate">// Number + Number -> addition +<pre class="brush: js"> +// Number + Number -> 덧셈 1 + 2 // 3 - -// Boolean + Number -> addition + +// Boolean + Number -> 덧셈 true + 1 // 2 -// Boolean + Boolean -> addition -false + false // 0 -</pre> +// Boolean + Boolean -> 덧셈 +false + false // 0</pre> -<h3 id="String_concatenation">String concatenation</h3> +<h3 id="string_concatenation">문자열 연결</h3> -<pre class="brush: js notranslate">// String + String -> concatenation +<pre class="brush: js"> +// String + String -> 연결 'foo' + 'bar' // "foobar" -// Number + String -> concatenation +// Number + String -> 연결 5 + 'foo' // "5foo" -// String + Boolean -> concatenation +// String + Boolean -> 연결 'foo' + false // "foofalse"</pre> -<h2 id="Specifications">Specifications</h2> - -<table class="standard-table"> - <tbody> - <tr> - <th scope="col">Specification</th> - </tr> - <tr> - <td>{{SpecName('ESDraft', '#sec-addition-operator-plus', 'Addition operator')}}</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_compatibility">Browser compatibility</h2> +<h2 id="specifications">명세</h2> +{{Specifications}} +<h2 id="browser_compatibility">브라우저 호환성</h2> -<p>{{Compat("javascript.operators.addition")}}</p> +<p>{{Compat}}</p> -<h2 id="See_also">See also</h2> +<h2 id="see_also">같이 보기</h2> <ul> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Subtraction">Subtraction operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Division">Division operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Multiplication">Multiplication operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Remainder">Remainder operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Exponentiation">Exponentiation operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Increment">Increment operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Decrement">Decrement operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_negation">Unary negation operator</a></li> - <li><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Unary_plus">Unary plus operator</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Subtraction">빼기 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Division">나누기 연산자</a></li> + <li><a + href="/ko/docs/Web/JavaScript/Reference/Operators/Multiplication">곱하기 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Remainder">나머지 연산자</a></li> + <li><a + href="/ko/docs/Web/JavaScript/Reference/Operators/Exponentiation">거듭제곱 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Increment">증가 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Decrement">감소 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Unary_negation">단항 부정 연산자</a></li> + <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Unary_plus">단항 플러스 연산자</a></li> </ul> |