MDN may have intermittent access issues April 18 13:00 - April 19 01:00 UTC. See for all notifications.

Your Search Results


    jsval constants that represent the JavaScript values true and false.




    JSVAL_TRUE and JSVAL_FALSE are jsval constants that represent the JavaScript boolean values, true and false. They are equivalent to BOOLEAN_TO_JSVAL(true) and BOOLEAN_TO_JSVAL(false), respectively.

    Take care not to confuse the jsval constants JSVAL_TRUE and JSVAL_FALSE with the bool constants true and false. jsval values must not be used as C true/false values; there is no guarantee that the C bit-pattern of any particular jsval is zero or nonzero.

    See Also

    Document Tags and Contributors

    Contributors to this page: Fedot, fscholz, Jorend, arai
    Last updated by: arai,
    Hide Sidebar