To change a type based on a bunch of complicated logic that is best ignored. In production code based you rarely see double equals. It’s avoided because it’s confusing and unintuitive.
(In case you're just not familiar with the word "coerce", it's almost the same as the word "force" in this context. A number is coerced/forced to be a string, for example.)
38
u/morasyid Nov 30 '22
remember,
= is to assign a value
== is to compare value
=== is to compare value AND type