aboutsummaryrefslogtreecommitdiff
path: root/files
diff options
context:
space:
mode:
authorbtea <2356281422@qq.com>2021-11-11 19:31:02 -0600
committerGitHub <noreply@github.com>2021-11-12 09:31:02 +0800
commit5a17945996ef9b9f2263362a960fa93b3a69f8ba (patch)
treed5e208c94d209a17e3ecb7a4a6fead1331d4baf4 /files
parente975b119c96114af3dd93b886aca93dbbb8f944e (diff)
downloadtranslated-content-5a17945996ef9b9f2263362a960fa93b3a69f8ba.tar.gz
translated-content-5a17945996ef9b9f2263362a960fa93b3a69f8ba.tar.bz2
translated-content-5a17945996ef9b9f2263362a960fa93b3a69f8ba.zip
Update Glossary/Truthy, zh-CN (#3050)
Diffstat (limited to 'files')
-rw-r--r--files/zh-cn/glossary/truthy/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/glossary/truthy/index.html b/files/zh-cn/glossary/truthy/index.html
index 1fc70469bc..06dae31b50 100644
--- a/files/zh-cn/glossary/truthy/index.html
+++ b/files/zh-cn/glossary/truthy/index.html
@@ -8,7 +8,7 @@ tags:
- 术语
translation_of: Glossary/Truthy
---
-<p>在 {{Glossary("JavaScript")}} 中,<strong>truthy</strong>(真值)指的是在{{Glossary("Boolean", "布尔值")}}上下文中,转换后的值为真的值。所有值都是真值,除非它们被定义为 {{Glossary("Falsy", "假值")}}(即除 <code>false</code>、<code>0</code>、<code>""</code>、<code>null</code>、<code>undefined</code> 和 <code>NaN</code> 以外皆为真值)。</p>
+<p>在 {{Glossary("JavaScript")}} 中,<strong>truthy</strong>(真值)指的是在{{Glossary("Boolean", "布尔值")}}上下文中,转换后的值为真的值。所有值都是真值,除非它们被定义为 {{Glossary("Falsy", "假值")}}(即除 <code>false</code>、<code>0</code>、<code>-0</code>、<code>0n</code>、<code>""</code>、<code>null</code>、<code>undefined</code> 和 <code>NaN</code> 以外皆为真值)。</p>
<p>{{Glossary("JavaScript")}} 在布尔值上下文中使用强制类型转换({{Glossary("Type_Conversion", "coercion")}})。</p>