aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/javascript/reference/operators/logical_not
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_not
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_not')
-rw-r--r--files/zh-cn/web/javascript/reference/operators/logical_not/index.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/files/zh-cn/web/javascript/reference/operators/logical_not/index.html b/files/zh-cn/web/javascript/reference/operators/logical_not/index.html
index f05bfb180a..e27ad4db4f 100644
--- a/files/zh-cn/web/javascript/reference/operators/logical_not/index.html
+++ b/files/zh-cn/web/javascript/reference/operators/logical_not/index.html
@@ -13,7 +13,7 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_NOT
<h2 id="语法">语法</h2>
-<pre class="syntaxbox notranslate">!<var>expr</var>
+<pre class="syntaxbox">!<var>expr</var>
</pre>
<h2 id="Description">Description</h2>
@@ -40,7 +40,7 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_NOT
<p>The following code shows examples of the <code>!</code> (logical NOT) operator.</p>
-<pre class="brush: js notranslate">n1 = !true // !t returns false
+<pre class="brush: js">n1 = !true // !t returns false
n2 = !false // !f returns true
n3 = !'' // !f returns true
n4 = !'Cat' // !t returns false</pre>
@@ -51,7 +51,7 @@ n4 = !'Cat' // !t returns false</pre>
<p>The same conversion can be done through the {{jsxref("Global_Objects/Boolean/Boolean", "Boolean")}} function.</p>
-<pre class="brush: js notranslate">n1 = !!true // !!truthy returns true
+<pre class="brush: js">n1 = !!true // !!truthy returns true
n2 = !!{} // !!truthy returns true: <strong>any</strong> object is truthy...
n3 = !!(new Boolean(false)) // ...even Boolean objects with a false <em>.valueOf()</em>!
n4 = !!false // !!falsy returns false
@@ -62,11 +62,11 @@ n6 = !!Boolean(false) // !!falsy returns false</pre>
<p>The following operation involving <strong>booleans</strong>:</p>
-<pre class="brush: js notranslate">!!bCondition</pre>
+<pre class="brush: js">!!bCondition</pre>
<p>is always equal to:</p>
-<pre class="brush: js notranslate">bCondition</pre>
+<pre class="brush: js">bCondition</pre>
<h2 id="Specifications">Specifications</h2>