Booklet

author

Luna

IT & Software

Difference between == and ===

DIFFERENCE BETWEEN == AND ===

==, is used for comparing two variables, but it ignores the datatype of variable.

===, is used for comparing two variables, but this operator also checks datatype and compares two values.

1 == "1", true, automatic type conversion for value only

1 === "1", false, because they are of a different type

More booklets by Luna

More IT & Software booklets

Your recently viewed booklets

  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
  • booklet-slide-images
See all booklets