From 01b0e12ba27b5069248fd09235e9a7143915ee30 Mon Sep 17 00:00:00 2001 From: Irvin Date: Wed, 16 Feb 2022 02:02:49 +0800 Subject: remove `notranslate` class in zh-CN --- .../web/javascript/reference/operators/logical_not/index.html | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'files/zh-cn/web/javascript/reference/operators/logical_not') 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

语法

-
!expr
+
!expr
 

Description

@@ -40,7 +40,7 @@ translation_of: Web/JavaScript/Reference/Operators/Logical_NOT

The following code shows examples of the ! (logical NOT) operator.

-
n1 = !true               // !t returns false
+
n1 = !true               // !t returns false
 n2 = !false              // !f returns true
 n3 = !''                 // !f returns true
 n4 = !'Cat'              // !t returns false
@@ -51,7 +51,7 @@ n4 = !'Cat' // !t returns false

The same conversion can be done through the {{jsxref("Global_Objects/Boolean/Boolean", "Boolean")}} function.

-
n1 = !!true                   // !!truthy returns true
+
n1 = !!true                   // !!truthy returns true
 n2 = !!{}                     // !!truthy returns true: any object is truthy...
 n3 = !!(new Boolean(false))   // ...even Boolean objects with a false .valueOf()!
 n4 = !!false                  // !!falsy returns false
@@ -62,11 +62,11 @@ n6 = !!Boolean(false)         // !!falsy returns false

The following operation involving booleans:

-
!!bCondition
+
!!bCondition

is always equal to:

-
bCondition
+
bCondition

Specifications

-- cgit v1.2.3-54-g00ecf