Operatori di confronto JavaScript Operator Description == equal to === equal value and equal type != not equal !== not equal value or not equal type > greater than < less than >= greater than or equal to <= less than or equal to ? ternary operator Gli operatori di confronto sono completamente descritti nel capitolo Confronto JS . Operatori logici JavaScript Operator Description && logical and || logical or ! logical not Gli operatori logici sono completamente descritti nel capitolo Confronto JS . Operatori di tipo JavaScript Operator Description typeof Returns the type of a variable instanceof Returns true if an object is an instance of an object type Gli operatori di tipo sono completamente descritti nel capitolo Conversione del tipo JS . JavaScript Operatori bit a bit Gli operatori di bit lavorano su numeri a 32 bit. Qualsiasi operando numerico nell'operazione viene convertito in un numero a 32 bit. Il risultato viene convertito in un numero JavaScript. Operator Description Example Same As Result Decimal & And 5 & 1 0101 & 0001 0001 1 | Or 5 | 1 0101 | 0001 0101 5 ~ Not ~ 5 ~0101 1010 10 ^ Xor 5 ^ 1 0101 ^ 0001 0100 4 << Zero fill Left shift 5 << 1 0101 << 1 1010 10 >> Signed Right shift 5 >> 1 0101 >> 1 0010 2 >>> Zero fill Right shift 5 >>> 1 0101 >>> 1 0010 2 |