Oilmone Profile picture
Tech Enthusiast and Code Lover. #Javascript #PHP #Laravel #CodeIgniter #VueJS #Instructor #Mentor #Lover
Sep 2, 2019 32 tweets 14 min read
@unicodeveloper …The Weird Parts…

Let’s go through each instances in this tweet, but first, let’s refresh our minds on some key topics to demystifying this weird expressions.

BOOLEAN
The boolean type has only two values: true and false.

Conversion to boolean can be performed explicitly... @unicodeveloper ...with a call to Boolean(value), where value can be a primitive (3, “@OilmoneDev", etc), an expression (5 >3) or even an Object ({}).


When an explicit conversion is made (using “Boolean” keyword; without quotes) or the JS engine implicitly coerces a value, object, expression