JavaScript logical assignment operators

Adds the logical assignment operators ||=, &&=, and ??= to JavaScript.


This rounds out the compound assignment operators to also include logical binary operators. Currently only mathematical and bitwise binary operators are supported. This is an incremental improvement for shipping terser, clearer JS.



Editor's draft

Status in Chromium


Enabled by default (tracking bug) in:

  • Chrome for desktop release 85
  • Chrome for Android release 85
  • Android WebView release 85

Consensus & Standardization

After a feature ships in Chrome, the values listed here are not guaranteed to be up to date.


Search tags

logical assignment,

Last updated on 2020-10-25