aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/operators/logical_and_assignment
diff options
context:
space:
mode:
authorIrvin <irvinfly@gmail.com>2022-02-16 02:02:49 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit01b0e12ba27b5069248fd09235e9a7143915ee30 (patch)
tree0e9edf538dc3fa3331e1dbb79239b58186765f86 /files/zh-cn/web/javascript/reference/operators/logical_and_assignment
parent6ca84f1794af830ada9736d7289ce29aabb04ca3 (diff)
downloadtranslated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.tar.gz
translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.tar.bz2
translated-content-01b0e12ba27b5069248fd09235e9a7143915ee30.zip
remove `notranslate` class in zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/reference/operators/logical_and_assignment')
-rw-r--r--files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html b/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html
index 3ed9a1582a..4ee00585a5 100644
--- a/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/logical_and_assignment/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_AND_assignment
<h2 id="语法">语法</h2>
-<pre class="syntaxbox notranslate"><em>expr1</em> &amp;&amp;= <em>expr2</em>
+<pre class="syntaxbox"><em>expr1</em> &amp;&amp;= <em>expr2</em>
</pre>
<h2 id="描述">描述</h2>
@@ -28,18 +28,18 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_AND_assignment
<p>Logical AND assignment short-circuits as well meaning that <code>x &amp;&amp;= y</code> is equivalent to:</p>
-<pre class="brush: js notranslate">x &amp;&amp; (x = y);</pre>
+<pre class="brush: js">x &amp;&amp; (x = y);</pre>
<p>And not equivalent to the following which would always perform an assignment:</p>
-<pre class="brush: js notranslate example-bad">x = x &amp;&amp; y;
+<pre class="brush: js example-bad">x = x &amp;&amp; y;
</pre>
<h2 id="例子">例子</h2>
<h3 id="Using_logical_AND_assignment">Using logical AND assignment</h3>
-<pre class="brush: js notranslate">let x = 0;
+<pre class="brush: js">let x = 0;
let y = 1;
x &amp;&amp;= 0; // 0