+!!(this.cx - 100)
I was baffled by the sheer amount of operators in front of the brackets. What do they actually do? So I switched to WriteCodeOnline and typed in some examples. The following table presents the results:
|number != 0||false||true||1|
So, the sole purpose of
+!! is to get a
1 from whatever value is passed to it.