Why does +!!{} equal to 1?

Viewed 24

I understand that it has a typeof Number because of plus before it and that it is an empty object.

+!!{} === 1
1 Answers

! of any (also the empty) object is false

!false is true

+true === 1

Related