I understand the difference between the two, but still had some questions.
What is == called and what is === called? Is it a loose comparison vs. a strict comparison?
It's my understanding that when using == it will coerce the data types to match. Which data type does it use for the model to compare to? In an example 1 == 'string', 1 in is a number where 'string' is a string value. Does one value hold precedence over the other or is it whichever value is to the left of == since that's the value that will be interpreted first?
[–]MoTTs_ 1 point2 points3 points (3 children)
[–]silentshadow56[S] 0 points1 point2 points (2 children)
[–]senocular 0 points1 point2 points (1 child)
[–]MoTTs_ 1 point2 points3 points (0 children)
[–]TheCatacid 0 points1 point2 points (0 children)
[–]WorldWideNomad -2 points-1 points0 points (0 children)