filmov
tv
Converting Number Object into boolean in Java Script

Показать описание
Calling the typeof operator on a Number object returns object. Whether that object represents a positive value, a negative one or zero it doesn't make any difference. In all cases, an object is an object... and just as any other object (except for null) when converting it into the boolean primitive value we get true.