-3

What is the difference between == and ===?

It is more confusing when we see == and sometimes we see ===.

Andy
  • 53,323
  • 11
  • 64
  • 89
shammi_LU
  • 1
  • 1
  • (integer) 1 == (char) '1' it will return true and for 1==='1' it will return false beacause of strict comparasion. For more information https://www.guru99.com/difference-equality-strict-operator-javascript.html#:~:text=%3D%3D%20in%20JavaScript%20is%20used,datatype%20and%20compares%20two%20values.&text=Checks%20the%20equality%20of%20two,two%20operands%20with%20their%20types. – SHAYAK May 09 '22 at 15:57

0 Answers0