Thursday, 23 June 2016

javascript - What will be the value of a every thing is allowed?

I want to run this if statement .



Help me to get the value of a.



var a =undefined ;

if(a=1 && a=2 && a=3)
{
console.log("Hello")}


else
{console.log("Error")
}

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...