When == isn’t equal

Earlier this month I did a post about common mistakes made by developers new to JavaScript but there’s a point I forgot to cover which I see a lot of. Nearly every language has a different way in which it handles equality. SQL has a single equal sign a…

Earlier this month I did a post about common mistakes made by developers new to JavaScript but there's a point I forgot to cover which I see a lot of. Nearly every language has a different way in which it handles equality. SQL has a single equal sign ala: SELECT [COLUMN1] FROM [Table] WHERE [COLUMN2] = 'some value' Or you have compiled languages like C# which use ==: if(someValue == someOtherValue){ } Or for some wierd reason LINQ uses the keyword equal when it does join operations.
Print Share Comment Cite Upload Translate
CITATION GOES HERE CITATION GOES HERE
Select a language: