Javascript Comma Operator

I had quite frankly never heard of this operator before and ran into it while debugging an app. Basically I had an if statement as such: if(false,”foo”){} which would to my surprise evaluate to true and not give me a syntax error which I was expecting given the “misplaced” comma. A little bit of feedbackContinue reading “Javascript Comma Operator”