DEV Community

loading...

`if-else-if-else`

codefinity profile image Manav Misra ・1 min read

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)

pic
Editor guide