Thursday, June 23, 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