ITADN

What value does the assignment evalute to?

#9Openbakkot 创建于 2024-06-05
B
bakkotcommented
(From plenary, just capturing here since I don't see it anywhere.) Consider: ```js let x = a?.b = c; ``` What value does `x` get? (One possible solution is to say that this operator is only legal in statement position, though that's a little awkward to specify.)
2 条评论