poniedzia艂ek, 15 kwietnia 2024

JS NaN math operation that not returns NaN

I always thought that in JS every math operation that uses NaN returns NaN. 

However, there is a couple a funny exceptions

NaN ** 0 > returns 1, the same as

Math.pow(NaN, 0)

Wonders never cease

Brak komentarzy:

Prze艣lij komentarz