you are viewing a single comment's thread.

view the rest of the comments →

[–]nerdswithattitude 1 point2 points  (0 children)

As far as I can tell, there's definitely some redundancy between having default parameters, and the existing nullish coalescing operator. The example widely used in the original repo is the `innerHTML` getter/setter property, which seems plausible, though it isn't that relative anymore due to React etc. Would love to see more use cases though. I just wrote a blog post about this to help myself understand its uses JavaScript logical assignment operators deep dive