I have these declarations:
var a;
var b = 1;
var c = 2;
var d = a || b, c;
d is 1 , so what is the meaning of the ,c in the expression?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The construct
does two things :
dand assigns it the valuea||bcvariableAs
cwas already declared, I’d say it’s totally useless.