Google for Developers (@googledevs) 's Twitter Profile
Google for Developers

@googledevs

Discover the latest developer tools, resources, events, and announcements to help you build smarter, ship faster. 🚀

ID: 50090898

linkhttps://developers.google.com/ calendar_today23-06-2009 20:25:29

11,11K Tweet

2,6M Followers

306 Following

Google for Developers (@googledevs) 's Twitter Profile Photo

a is a primitive false, so the first if doesn’t run b is an object created with new Boolean(false), and in JavaScript, all objects are truthy So the second if runs, even though b.valueOf() is false This can cause real-world bugs when using Boolean objects instead of primitives,