SóProvas


ID
192937
Banca
FCC
Órgão
MPE-RN
Ano
2010
Provas
Disciplina
Programação
Assuntos

Em JavaScript, o operador que retorna true se as variáveis envolvidas não possuírem o mesmo valor e/ou não forem do mesmo tipo de dado, caso contrário, retorna false, é

Alternativas
Comentários
  • Comparison Operators
    Comparison operators are used in logical statements to determine equality or difference between variables or values.

    Given that x=5, the table below explains the comparison operators:

    Operator Description Example
    == (is equal to) x==8, is false
    === (is exactly equal to (value and type)) x===5, is true; x==="5" is false
    != (is not equal) x!=8, is true
    > (is greater than) x>8, is false
    < (is less than) x<8, is true
    >= (is greater than or equal to) x>=8, is false
    <= (is less than or equal to) x<=8, is true

    --------------------------------------------------------------------------------
    fonte: http://www.w3schools.com/js/js_comparisons.asp

     

  • ===
    This is the strict equal operator and only returns a Boolean true if both the operands are equal and of the same type.


    ! ==
    This is the strict not equal operator and only returns a value of true if both the operands are not equal and/or not of the same type.



    fonte: http://www.devguru.com/technologies/ecmascript/quickref/comparison_operators.html