The description of comma operator says You can use the comma operator when you want to include multiple expressions in a location that requires a single expression And the syntax and parameters also says that its operands should be expressions. Syntax expr1, expr2, expr3… Parameters expr1, expr2, expr3… Any expressions. I want to know that why the following code doesnot
Tag: comma-operator
What does return void 0 === i && (i = 3), 0 === i ? ( ..A.. ) : ( ..B.. ) do?
I came to this code but I don’t understand very well what it does.. (..A..) and (..B..) are just other lines of code I haven’t posted. Let’s say if i would have a 0 value, what the function will return? What does “void 0 === i && (i = 3)” do? Specially (i = 3). Does that mean that if