top of page
Search

Equality:triple Vs double equals

zakariyesahid96
  • 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 !==

0 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page