JavaScript Boolean Wrapper Confusion
> new Boolean(false) < ▶ Boolean {false} > new Boolean(new Boolean(false)) < ▶ Boolean {true} Javascript 100
A JavaScript console shows that wrapping false in a Boolean object produces a truthy value. The punchline is that JavaScript's type coercion and object behavior seem absurdly counterintuitive, making this a reaction meme for bizarre programming logic.
- @dev_meme / 4081 2022-01-06
- Type
- image
- Size
- 800×499 · 43.6 KiB
- Mood
- absurd, sarcastic
- Language
- en
- Added