How does js determine that a value is not equal to xx or xx?

problem description

case: if there is an a, the condition is satisfied when it is neither equal to 0 nor equal to 1. How to apply ! = and in jsx | | ?

...
{
    a != (0 || 1) ? "yes" : "no"
}
...

the above can only judge 0. Is there any solution?

Mar.25,2022

you can use:

a !== 0 && a!== 1

or includes :

![0, 1].includes(a)
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ed62-2bc91.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ed62-2bc91.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?