Thursday, June 4, 2015

Some Tricky output of Logical Operators in JavaScript

What do you think what will result variable will contain after evaluation of following JavaScript statement: var result = "Apple" && "Orange"; Is it true or false or Apple or Orange?

No comments:

Post a Comment