Posts

Very recently for my development purpose I need to use Dictionary. And it works very nicely. But problem occurred when requirement changes and face a scenario that duplicate key's are needed to handle in Dictionary which is not possible. So I had written a custom class to handle this problem,please suggests me if there is any better idea.

Like many other languages Javascript’s && and || operators short-circuit evaluations,that is, for

&& if the first operand evaluates to false, the second operand is never evaluated because the result would always be false.
Similarly, for|| if the result of the first operand is true, the second operand is never operated.
This means that in the following expression, x will never be compared to y.true || x == y

This short-circuiting is great for performance, as it allows significant bits of calculations to be skipped. In addition to that, it lets you to write e.g. the following in one expression without getting an ‘object has no properties’ error:oNode && oNode.firstChild

Be mindful though when using && with code that has side effects, e.g. say you have two objects with a hasError() method which return true or false depending on whether an error occurred and additionally output an error message:x.hasError() && y.hasError()

I am ex Microsoft Most Valuable Professional and work as a Senior Software Engineer having 10+ years of experiences in the
design, prototyping, development and deployment of various class of business solutions. I am interested on large scale business application, architectural design, algorithm etc. I am expertise at C#,ASP.NET,Dynamics 365,SharePoint,MS Dynamics CRM/AX ,Windows Azure, MSSQL,SSAS,SSIS and Oracle etc.