top of page
Search
zakariyesahid96

Equality:triple Vs double equals

  • 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

Comentarios


Post: Blog2_Post
bottom of page