Can't find documentation on the equals operators, specifically when to use == and ===? I can't seem to google "=". Thanks for any ideas.
Can't find documentation on the equals operators, specifically when to use == and ===? I can't seem to google "=". Thanks for any ideas.
bluewalrus (11-10-2009)
Just a little addition to Tim's post.
== is to compare, and return false if the values are different.
=== is to compare, and see if the types (array, string, number) are the same, and then return false on failure.
Jeremy | jfein.net
bluewalrus (11-10-2009)
Bookmarks