aboutsummaryrefslogtreecommitdiff
path: root/files/ko/conflicting/web/javascript/guide/expressions_and_operators
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/conflicting/web/javascript/guide/expressions_and_operators')
-rw-r--r--files/ko/conflicting/web/javascript/guide/expressions_and_operators/index.html46
1 files changed, 0 insertions, 46 deletions
diff --git a/files/ko/conflicting/web/javascript/guide/expressions_and_operators/index.html b/files/ko/conflicting/web/javascript/guide/expressions_and_operators/index.html
deleted file mode 100644
index 621a2cee51..0000000000
--- a/files/ko/conflicting/web/javascript/guide/expressions_and_operators/index.html
+++ /dev/null
@@ -1,46 +0,0 @@
----
-title: Arithmetic Operators
-slug: conflicting/Web/JavaScript/Guide/Expressions_and_Operators
-translation_of: Web/JavaScript/Guide/Expressions_and_Operators
-translation_of_original: Web/JavaScript/Guide/Obsolete_Pages/Operators/Arithmetic_Operators
-original_slug: >-
- Web/JavaScript/Guide/Obsolete_Pages/Core_JavaScript_1.5_Guide/Operators/Arithmetic_Operators
----
-<h3 id=".EC.82.B0.EC.88.A0_.EC.97.B0.EC.82.B0.EC.9E.90" name=".EC.82.B0.EC.88.A0_.EC.97.B0.EC.82.B0.EC.9E.90"> 산술 연산자 </h3>
-<p>산술 연산자는 수(상수값이든지 변수든지)를 받아서 하나의 수를 반환합니다. 표준 산술 연산자는 더하기(+), 빼기(-), 곱하기(*), 나누기(/)입니다. 이 연산자들은 대부분의 다른 프로그래밍 언어에서 처럼 동작합니다. 예외적으로 / 연산자는 JavaScript에서 소수를 반환합니다. C나 Java 같은 다른 언어에서는 / 연산자가 소수 부분은 잘라버립니다. 예를 들면 이렇습니다.
-</p>
-<pre>1/2 //returns 0.5 in JavaScript
-1/2 //returns 0 in Java
-</pre>
-<p>JavaScript는 다음 표에 나오는 산술 연산자를 제공합니다.
-</p>
-<table class="fullwidth-table">
-<tbody><tr>
-<th>연산자</th>
-<th>설명</th>
-<th>예제</th>
-</tr>
-<tr>
-<td>%<br>(나머지)</td>
-<td>2항(binary) 연산자. 두 피연산자의 나눗셈에서 나온 나머지를 반환합니다.</td>
-<td>12 % 5 returns 2.</td>
-</tr>
-<tr>
-<td>++<br>(증가)</td>
-<td>단항(unary) 연산자. 피연산자에 1을 더함. 전위 연산자(++x)를 사용하면 피연산자에 1을 더한 후 그 값을 반환합니다. 후위 연산자(x++)를 사용하면 피연산자에 1을 더하기 전에 피연산자의 값을 반환합니다.</td>
-<td><code>x</code>가 3일 때, <code>++x</code>는 <code>x</code>를 4로 만들고 4를 반환합니다. 반면 <code>x++</code>는 <code>x</code>를 4로 만들고 3을 반환합니다.</td>
-</tr>
-<tr>
-<td>--<br>(감소)</td>
-<td>단항 연산자. 피연산자에서 1을 뺌. 반환값은 증가 연산자와 동일한 방식으로 결정됩니다.</td>
-<td><code>x</code>가 3일 때, <code>--x</code>는 <code>x</code>를 2로 만들고 2를 반환합니다. 반면 <code>x--</code>는 <code>x</code>를 2로 만들고 3을 반환합니다.</td>
-</tr>
-<tr>
-<td>-<br>(단항 부정)</td>
-<td>단항 연산자. 피연산자의 부호를 바꾼 값을 반환합니다.</td>
-<td><code>x</code>가 3이면 <code>-x</code>는 -3을 반환합니다.</td>
-</tr>
-</tbody></table>
-<p><small><b>표 3.4: 산술 연산자</b></small>
-</p><p>{{ PreviousNext("Core_JavaScript_1.5_Guide:Operators:Comparison_Operators", "Core_JavaScript_1.5_Guide:Operators:Bitwise_Operators") }}
-</p>{{ languages( { "en": "en/Core_JavaScript_1.5_Guide/Operators/Arithmetic_Operators", "fr": "fr/Guide_JavaScript_1.5/Op\u00e9rateurs/Op\u00e9rateurs_arithm\u00e9tiques", "ja": "ja/Core_JavaScript_1.5_Guide/Operators/Arithmetic_Operators", "pl": "pl/Przewodnik_po_j\u0119zyku_JavaScript_1.5/Operatory/Operatory_arytmetyczne" } ) }}