aboutsummaryrefslogtreecommitdiff
path: root/files/ru/glossary/truthy/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/ru/glossary/truthy/index.html')
-rw-r--r--files/ru/glossary/truthy/index.html40
1 files changed, 0 insertions, 40 deletions
diff --git a/files/ru/glossary/truthy/index.html b/files/ru/glossary/truthy/index.html
deleted file mode 100644
index c1ecc2b86b..0000000000
--- a/files/ru/glossary/truthy/index.html
+++ /dev/null
@@ -1,40 +0,0 @@
----
-title: Truthy
-slug: Glossary/Truthy
-tags:
- - Glossary
- - JavaScript
- - truthy
- - Глоссарий
-translation_of: Glossary/Truthy
-original_slug: Глоссарий/Truthy
----
-<p>В {{Glossary("JavaScript")}}, <strong>истинное</strong> значение - это значение, которое считается <code>true</code>, когда встречается в контексте {{Glossary("Boolean")}}. Все значения истинные, если они не определены как {{Glossary("Falsy", "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_coercion", "приведение типов")}} в Boolean контекстах.</p>
-
-<p>Примеры истинных значений в JavaScript (которые будут приведены к true в булевых выражениях, и таким образом выполниться блок if):</p>
-
-<pre class="brush: js">if (true)
-if ({})
-if ([])
-if (42)
-if ("0")
-if (new Date())
-if (-42)
-if (12n)
-if (3.14)
-if (-3.14)
-if (Infinity)
-if (-Infinity)
-</pre>
-
-<h2 id="Смотрите_также">Смотрите также</h2>
-
-<ul>
- <li>{{Glossary("Falsy")}}</li>
- <li>{{Glossary("Type_Conversion", "Coercion")}}</li>
- <li>{{Glossary("Boolean")}}</li>
-</ul>
-
-<div>{{QuickLinksWithSubpages("/en-US/docs/Glossary")}}</div>