DEV Community

Manav Misra
Manav Misra

Posted on

`if-else-if-else`

A seminal concept for any programming language is simple 'if this then that' logic.

In JavaScript a 'side effect' of if statements is that whatever expression we pass into it will always be coerced into a boolean.

Discussion (0)