en.javascript.info icon indicating copy to clipboard operation
en.javascript.info copied to clipboard

Clarification in the example of comma operator

Open Alexandre887 opened this issue 2 years ago • 1 comments

Basic operators, maths

image

I think we need to add a clarification to this example, because if we run a = 1 + 2, 3 + 4 or (a = 1 + 2), 3 + 4 in strict mode, we get ReferenceError: a is not defined. I've seen several comments regarding this (some even tried to run this line of code with let: let a = 1 + 2, 3 + 4)

Alexandre887 avatar Aug 13 '23 23:08 Alexandre887

Please make the requested changes. After it, add a comment "/done".
Then I'll ask for a new review :ghost: