Interested in Sitecore?

Apply for our Mentorship Program by emailing your resume to chris.williams@techguilds.com. Check out our ASP.NET QuickStart and C# QuckStart Libraries. Below is my latest articles.

Friday, June 11, 2010

Single, Double or Triple Equal?

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: