I'm struggling to understand how to evaluate this expression +!!NaN * "" - - [,]
Can anyone help me please?
I'm struggling to understand how to evaluate this expression +!!NaN * "" - - [,]
Can anyone help me please?
+!!NaN; // !NaN => true -> !true => false -> +false => 0
Number(""); // -> 0
-[,]; // -> - 0 , [,] is empty so it will be casted to 0
Add it all together:
0 * 0 - -0; // -> 0