Skip to content

Commit

Permalink
Fix mistake in truthy doc (mdn#29591)
Browse files Browse the repository at this point in the history
* `document.all` isn't truthy

* move `document.all` to line end

Co-authored-by: Zach Fox <[email protected]>

---------

Co-authored-by: Zach Fox <[email protected]>
  • Loading branch information
donno2048 and zfox23 authored Oct 11, 2023
1 parent a15be9c commit be1fe9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/glossary/truthy/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ page-type: glossary-definition

{{GlossarySidebar}}

In {{Glossary("JavaScript")}}, a **truthy** value is a value that is considered `true` when encountered in a {{Glossary("Boolean")}} context. All values are truthy unless they are defined as {{Glossary("Falsy", "falsy")}}. That is, all values are _truthy_ except `false`, `0`, `-0`, `0n`, `""`, `null`, `undefined`, and `NaN`.
In {{Glossary("JavaScript")}}, a **truthy** value is a value that is considered `true` when encountered in a {{Glossary("Boolean")}} context. All values are truthy unless they are defined as {{Glossary("Falsy", "falsy")}}. That is, all values are _truthy_ except `false`, `0`, `-0`, `0n`, `""`, `null`, `undefined`, `NaN`, and {{domxref("document.all")}}.

{{Glossary("JavaScript")}} uses {{Glossary("Type_Coercion", "type coercion")}} in Boolean contexts.

Expand Down

0 comments on commit be1fe9c

Please sign in to comment.