top of page
Search

Equality:triple Vs double equals

  • zakariyesahid96
  • Jan 28, 2022
  • 1 min read
  • Double equals checks for equality of value burbjor equality of type.

  • It coerces both values go check same type and then compare, may lead to unexpected results.

  • For example 1==1 would equal true.

  • Triple = checks for w of value and type for example 5===5; would be true.

  • The same apples with != and !==

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page