Loading...

JavaScript Gotcha: Why [x == (a || b)] Fails

JavaScript Gotcha: Why [x == (a || b)] Fails
Recently we observed that our JavaScript code was not working as expected. Now when we write conditions in JavaScript, it’s natural to want to check if a variable equals one of multiple values. A common mistake is to write the condition like this: At first glance, it seems like this would check if ‘loanType’ is … Continue reading "JavaScript Gotcha: Why [x == (a || b)] Fails"

Published on:

Learn more
Nishant Rana's Weblog – Everything related to Microsoft .NET Technology
Nishant Rana's Weblog – Everything related to Microsoft .NET Technology

Everything related to Microsoft .NET Technology

Share post:

Related posts

Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy