diff options
author | Florian Merz <me@fiji-flo.de> | 2021-02-11 14:49:58 +0100 |
---|---|---|
committer | Florian Merz <me@fiji-flo.de> | 2021-02-11 14:49:58 +0100 |
commit | 68fc8e96a9629e73469ed457abd955e548ec670c (patch) | |
tree | 8529ab9fe63d011f23c7f22ab5a4a1c5563fcaa4 /files/pt-br/glossario/truthy/index.html | |
parent | 8260a606c143e6b55a467edf017a56bdcd6cba7e (diff) | |
download | translated-content-68fc8e96a9629e73469ed457abd955e548ec670c.tar.gz translated-content-68fc8e96a9629e73469ed457abd955e548ec670c.tar.bz2 translated-content-68fc8e96a9629e73469ed457abd955e548ec670c.zip |
unslug pt-br: move
Diffstat (limited to 'files/pt-br/glossario/truthy/index.html')
-rw-r--r-- | files/pt-br/glossario/truthy/index.html | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/files/pt-br/glossario/truthy/index.html b/files/pt-br/glossario/truthy/index.html deleted file mode 100644 index 872e53df91..0000000000 --- a/files/pt-br/glossario/truthy/index.html +++ /dev/null @@ -1,34 +0,0 @@ ---- -title: Truthy -slug: Glossario/Truthy -tags: - - CodingScripting - - Glossário - - JavaScript -translation_of: Glossary/Truthy ---- -<p>Em {{Glossary("JavaScript")}}, um valor <strong>truthy</strong> é um valor que se traduz em verdadeiro quando avaliado em um contexto {{Glossary("Booleano")}}. Todos os valores são <strong>truthy</strong> a menos que eles sejam definidos como {{Glossary("Falsy", "falsy")}} (ou seja., exceto para <code>false</code>, <code>0</code>, <code>""</code>, <code>null</code>, <code>undefined</code>, e <code>NaN</code>).</p> - -<p>O {{Glossary("JavaScript")}} usa {{Glossary("Type_Conversion", "coerção")}} de tipo em contextos booleanos.</p> - -<p>Exemplos de valores <em>truthy</em> em JavaScript (que se traduzirão em true, e então executar o bloco <code>if</code>):</p> - -<pre><code>if (true) -if ({}) -if ([]) -if (42) -if ("foo") -if (new Date()) -if (-42) -if (3.14) -if (-3.14) -if (Infinity) -if (-Infinity)</code></pre> - -<h2 id="Veja_também">Veja também</h2> - -<ul> - <li>{{Glossary("Falsy")}}</li> - <li>{{Glossary("Type_Conversion", "Coercion")}}</li> - <li>{{Glossary("Boolean")}}</li> -</ul> |