diff options
author | Florian Dieminger <me@fiji-flo.de> | 2021-02-11 18:26:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 18:26:35 +0100 |
commit | ab718192b92d5cc38c1114e055a435a6de7dd8ef (patch) | |
tree | 4476b04544b3bba5577de73b8eec783d4f652639 /files/nl/glossary/truthy/index.html | |
parent | 45b9b0503988c22fbc4c7df82a35ff340cc1a211 (diff) | |
parent | 906182e62d7eb1efba5403b733aae0537dd2a09f (diff) | |
download | translated-content-ab718192b92d5cc38c1114e055a435a6de7dd8ef.tar.gz translated-content-ab718192b92d5cc38c1114e055a435a6de7dd8ef.tar.bz2 translated-content-ab718192b92d5cc38c1114e055a435a6de7dd8ef.zip |
Merge pull request #35 from fiji-flo/unslugging-nl
Unslugging nl
Diffstat (limited to 'files/nl/glossary/truthy/index.html')
-rw-r--r-- | files/nl/glossary/truthy/index.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/files/nl/glossary/truthy/index.html b/files/nl/glossary/truthy/index.html new file mode 100644 index 0000000000..b27c843353 --- /dev/null +++ b/files/nl/glossary/truthy/index.html @@ -0,0 +1,27 @@ +--- +title: Waarachtig ("Truthy") +slug: Glossary/Truthy +translation_of: Glossary/Truthy +original_slug: Glossary/Waarachtig +--- +<p>In {{Glossary("JavaScript")}}, is een <strong>waarachtige </strong>waarde (truthy value) een waarde welke vertaalbaar is naar <code>true</code> wanneer deze geevalueerd wordt in een {{Glossary("Boolean")}} context. Alle waarden zijn waarachtig, tenzij deze worden gedefinieerd als foutief {{Glossary("Falsy", "falsy")}} (bijv., met uitzondering van <code>false</code>, <code>0</code>, <code>""</code>, <code>null</code>, <code>undefined</code>, and <code>NaN</code>).</p> + +<p>{{Glossary("JavaScript")}} gebruikt type {{Glossary("Type_Conversion", "coercion")}} in een Boolean context.</p> + +<p>Voorbeelden van waarachtige waarden/ "<em>truthy values"</em> in JavaScript (die vertaalbaar zijn naar true en dus het <code>if</code> blok zullen doen uitvoeren):</p> + +<pre class="brush: js">if (true) +if ({}) +if ([]) +if (42) +if ("foo") +if (new Date()) +</pre> + +<h2 id="See_also">See also</h2> + +<ul> + <li>{{Glossary("Falsy")}}</li> + <li>{{Glossary("Type_Conversion", "Coercion")}}</li> + <li>{{Glossary("Boolean")}}</li> +</ul> |