`let arr = [1, 2, 3] arr[0],arr[2] = arr[2], arr[0] console.log(arr)` This should throw an error, but it does not and simply prints out 1, 2, 3. The left hand side is not flagged as a comma operator.
let arr = [1, 2, 3] arr[0],arr[2] = arr[2], arr[0] console.log(arr)This should throw an error, but it does not and simply prints out 1, 2, 3. The left hand side is not flagged as a comma operator.