DEV Community

Discussion on: Why (! + [] + [] + ![]).length is 9

Collapse
 
vocab_king profile image
WhistlerIAM

Hi.
This is very well documented in the Boolean coercion abstract operation by ECMAScript language.
So, there are two operations that you may check out.

  1. ToBoolean and ToString.