aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/equality_comparisons_and_sameness
diff options
context:
space:
mode:
authort7yang <t7yang@gmail.com>2022-01-10 08:38:07 +0800
committerIrvin <irvinfly@gmail.com>2022-02-16 02:35:54 +0800
commit563ca0a35e98678e2b7d5f154f31f496851e8d60 (patch)
tree7c99e7e037128217eca2080df671a742076c615b /files/zh-cn/web/javascript/equality_comparisons_and_sameness
parentd7b2995cabe8d85a1827aa18bc270bdf739f3d13 (diff)
downloadtranslated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.gz
translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.tar.bz2
translated-content-563ca0a35e98678e2b7d5f154f31f496851e8d60.zip
remove code tag inside pre tag for zh-CN
Diffstat (limited to 'files/zh-cn/web/javascript/equality_comparisons_and_sameness')
-rw-r--r--files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html b/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html
index c9e1e5ae71..06562c68b0 100644
--- a/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html
+++ b/files/zh-cn/web/javascript/equality_comparisons_and_sameness/index.html
@@ -388,7 +388,7 @@ function attemptMutation(v)
<dd>
<p>显而易见,对<code>0一元负操作得到</code><code>-0</code>。但表达式的抽象化可能在你没有意识到得情况下导致-0延续传播。例如当考虑下例时:</p>
- <pre class="brush:js language-js"><code class="language-js">let stoppingForce = obj.mass * -obj.velocity</code></pre>
+ <pre class="brush:js language-js">let stoppingForce = obj.mass * -obj.velocity</pre>
<p>如果<code>obj.velocity</code>是<code>0</code> (或计算结果为<code>0</code>), <code>一个-0</code>就在上处产生并被赋值为<code>stoppingForce的值</code>.</p>
</dd>