what is the difference between != and !== ?????

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmjpro
    Top Contributor
    • Jan 2007
    • 2476

    what is the difference between != and !== ?????

    plz tell me the difference between != and !== .....

    any help is nost welcome ....
  • mrhoo
    Contributor
    • Jun 2006
    • 428

    #2
    similar to == and ===, the equality and identity expressions,
    != is not equal to and !== is not identical to,

    Many things are equal but not identical- for instance,

    false,0,null,un defined and NaN are all equal, but none are identical to each other.

    false !=0 is false,
    false !==0 is true.

    Comment

    • dmjpro
      Top Contributor
      • Jan 2007
      • 2476

      #3
      thanxxx for ur replyyyy

      form ur answer what i understand ....... this is like this

      != means the compatible type conversion occures but for !== the type conversion never happen ...

      m i right?????? thanxxx again

      Comment

      Working...