aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/operators/operator_precedence
diff options
context:
space:
mode:
authorMasahiro FUJIMOTO <mfujimot@gmail.com>2021-08-17 11:37:07 +0900
committerGitHub <noreply@github.com>2021-08-17 11:37:07 +0900
commit98a7793a51bdbdeefb172842e677dca22eb779e5 (patch)
treef07cde27678193afe366832bd58c958657fadc6c /files/ko/web/javascript/reference/operators/operator_precedence
parent6c30dec8016abec2fba8caf0bd07d0e145c37caf (diff)
parenta28f6c8632ced6d91d311614d96ab643e5ef7058 (diff)
downloadtranslated-content-98a7793a51bdbdeefb172842e677dca22eb779e5.tar.gz
translated-content-98a7793a51bdbdeefb172842e677dca22eb779e5.tar.bz2
translated-content-98a7793a51bdbdeefb172842e677dca22eb779e5.zip
Merge branch 'mdn:main' into 20210811-orphaned/Web/API/NavigatorLanguage
Diffstat (limited to 'files/ko/web/javascript/reference/operators/operator_precedence')
-rw-r--r--files/ko/web/javascript/reference/operators/operator_precedence/index.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/ko/web/javascript/reference/operators/operator_precedence/index.html b/files/ko/web/javascript/reference/operators/operator_precedence/index.html
index 0d37a262c5..9f9ea86a93 100644
--- a/files/ko/web/javascript/reference/operators/operator_precedence/index.html
+++ b/files/ko/web/javascript/reference/operators/operator_precedence/index.html
@@ -19,9 +19,9 @@ original_slug: Web/JavaScript/Reference/Operators/연산자_우선순위
<h2 id="우선순위와_결합성">우선순위와 결합성</h2>
-<p>아래와 같이 표현할 수 있는 표현식을 생각해 봅시다. 연산자<sub>1</sub>과 연산자<sub>2</sub>의 자리에는 아무 연산자를 넣을 수 있습니다.</p>
+<p>아래와 같이 표현할 수 있는 표현식을 생각해 봅시다. 연산자1과 연산자2의 자리에는 아무 연산자를 넣을 수 있습니다.</p>
-<pre class="syntaxbox">a 연산자<sub>1</sub> b 연산자<sub>2</sub> c</pre>
+<pre class="syntaxbox">a 연산자1 b 연산자2 c</pre>
<p>두 연산자의 우선순위(아래 표 참조)가 다를 경우, 우선순위가 높은 연산자가 먼저 실행되고 결합성은 영향을 미치지 않습니다. 아래 예제에서는 덧셈이 곱셈보다 먼저 쓰였음에도 곱셈의 우선순위가 높기 때문에 먼저 실행됩니다.</p>
@@ -30,7 +30,7 @@ console.log(3 + (10 * 2)); // 23을 출력, 괄호는 불필요함
console.log((3 + 10) * 2); // 26을 출력, 괄호로 인해 실행 순서가 바뀜
</pre>
-<p>좌결합성(왼쪽에서 오른쪽으로)은 표현식이 <code>(a 연산자<sub>1</sub> b) 연산자<sub>2</sub> c</code>와 같이, 우결합성(오른쪽에서 왼쪽으로)은 <code>a 연산자<sub>1</sub> (b 연산자<sub>2</sub> c)</code>와 같이 계산된다는 의미입니다. 대입 연산자는 우결합성이므로 다음과 같은 코드를 작성할 수 있습니다.</p>
+<p>좌결합성(왼쪽에서 오른쪽으로)은 표현식이 <code>(a 연산자1 b) 연산자2 c</code>와 같이, 우결합성(오른쪽에서 왼쪽으로)은 <code>a 연산자1 (b 연산자2 c)</code>와 같이 계산된다는 의미입니다. 대입 연산자는 우결합성이므로 다음과 같은 코드를 작성할 수 있습니다.</p>
<pre class="brush: js">a = b = 5; // a = (b = 5);와 같음
</pre>