Someone asked me about this today so I thought I would share it with the guild. Most C# developers are familiar with the single vs double equals but in JavaScript what is the triple equals. Well it turns out the triple equal takes variable type into account. So 1 is not equal to '1' if you use the triple equal.
I did some searching and found an article on devx that explains it perfectly with an example. I have placed the link below:
No comments:
Post a Comment