aboutsummaryrefslogtreecommitdiff
path: root/files/ko/web/javascript/reference/operators/division_assignment/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ko/web/javascript/reference/operators/division_assignment/index.html')
-rw-r--r--files/ko/web/javascript/reference/operators/division_assignment/index.html55
1 files changed, 55 insertions, 0 deletions
diff --git a/files/ko/web/javascript/reference/operators/division_assignment/index.html b/files/ko/web/javascript/reference/operators/division_assignment/index.html
new file mode 100644
index 0000000000..6de3d76281
--- /dev/null
+++ b/files/ko/web/javascript/reference/operators/division_assignment/index.html
@@ -0,0 +1,55 @@
+---
+title: 나누기 할당 (/=)
+slug: Web/JavaScript/Reference/Operators/Division_assignment
+tags:
+ - Assignment operator
+ - JavaScript
+ - Language feature
+ - Operator
+ - Reference
+browser-compat: javascript.operators.division_assignment
+translation_of: Web/JavaScript/Reference/Operators/Division_assignment
+---
+
+<div>{{jsSidebar("Operators")}}</div>
+
+<p>
+ 나누기 할당 연산자(<code>/=</code>)는 오른쪽 피연산자의 값으로 변수를 나눈 결과를 다시 변수에 할당합니다.
+</p>
+
+<div>{{EmbedInteractiveExample("pages/js/expressions-division-assignment.html")}}</div>
+
+<h2 id="syntax">구문</h2>
+
+<pre class="brush: js">x /= y // x = x / y</pre>
+
+<h2 id="examples">예제</h2>
+
+<h3 id="using_division_assignment">나누기 할당 사용하기</h3>
+
+<pre class="brush: js">
+// bar = 5
+// 위와 같은 변수를 가정하고, 아래의 모든 연산을 순서대로 실행할 때
+
+bar /= 2 // 2.5
+bar /= 2 // 1.25
+bar /= 0 // Infinity
+bar /= 'foo' // NaN
+</pre>
+
+<h2 id="specifications">명세</h2>
+
+{{Specifications}}
+
+<h2 id="browser_compatibility">브라우저 호환성</h2>
+
+<p>{{Compat}}</p>
+
+<h2 id="see_also">같이 보기</h2>
+
+<ul>
+ <li>
+ <a href="/ko/docs/Web/JavaScript/Guide/Expressions_and_Operators#assignment">JavaScript 안내서의 할당 연산자</a>
+ </li>
+ <li><a href="/ko/docs/Web/JavaScript/Reference/Operators/Division">나누기 연산자</a></li>
+</ul>