{
 "compat_features": [
  "javascript.operators.logical_and_assignment",
  "javascript.operators.logical_or_assignment"
 ],
 "description": "The logical AND assignment (&&=) and the logical OR assignment (||=) operators short-circuit the respective binary logical operators.",
 "description_html": "The logical AND assignment (<code>&#x26;&#x26;=</code>) and the logical OR assignment (<code>||=</code>) operators short-circuit the respective binary logical operators.",
 "group": [
  "javascript"
 ],
 "kind": "feature",
 "name": "Logical assignments",
 "spec": [
  "https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-assignment-operators"
 ],
 "status": {
  "baseline": "high",
  "baseline_high_date": "2023-03-16",
  "baseline_low_date": "2020-09-16",
  "by_compat_key": {
   "javascript.operators.logical_and_assignment": {
    "baseline": "high",
    "baseline_high_date": "2023-03-16",
    "baseline_low_date": "2020-09-16",
    "support": {
     "chrome": "85",
     "chrome_android": "85",
     "edge": "85",
     "firefox": "79",
     "firefox_android": "79",
     "safari": "14",
     "safari_ios": "14"
    }
   },
   "javascript.operators.logical_or_assignment": {
    "baseline": "high",
    "baseline_high_date": "2023-03-16",
    "baseline_low_date": "2020-09-16",
    "support": {
     "chrome": "85",
     "chrome_android": "85",
     "edge": "85",
     "firefox": "79",
     "firefox_android": "79",
     "safari": "14",
     "safari_ios": "14"
    }
   }
  },
  "support": {
   "chrome": "85",
   "chrome_android": "85",
   "edge": "85",
   "firefox": "79",
   "firefox_android": "79",
   "safari": "14",
   "safari_ios": "14"
  }
 },
 "id": "logical-assignments",
 "groups": [
  "javascript"
 ],
 "specs": [
  {
   "url": "https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-assignment-operators",
   "seriesComposition": "full",
   "shortname": "ecmascript",
   "series": {
    "shortname": "ecmascript",
    "currentSpecification": "ecmascript",
    "title": "ECMAScript® 2027 Language Specification",
    "shortTitle": "ECMAScript",
    "nightlyUrl": "https://tc39.es/ecma262/multipage/"
   },
   "shortTitle": "ECMAScript",
   "tests": {
    "repository": "https://github.com/tc39/test262",
    "testPaths": [
     "test"
    ],
    "excludePaths": [
     "test/intl402"
    ]
   },
   "organization": "Ecma International",
   "groups": [
    {
     "name": "TC39",
     "url": "https://tc39.es/"
    }
   ],
   "nightly": {
    "url": "https://tc39.es/ecma262/multipage/",
    "status": "Editor's Draft",
    "alternateUrls": [],
    "repository": "https://github.com/tc39/ecma262",
    "sourcePath": "spec.html",
    "pages": [
     "https://tc39.es/ecma262/multipage/scope.html",
     "https://tc39.es/ecma262/multipage/conformance.html",
     "https://tc39.es/ecma262/multipage/normative-references.html",
     "https://tc39.es/ecma262/multipage/overview.html",
     "https://tc39.es/ecma262/multipage/notational-conventions.html",
     "https://tc39.es/ecma262/multipage/ecmascript-data-types-and-values.html",
     "https://tc39.es/ecma262/multipage/abstract-operations.html",
     "https://tc39.es/ecma262/multipage/syntax-directed-operations.html",
     "https://tc39.es/ecma262/multipage/executable-code-and-execution-contexts.html",
     "https://tc39.es/ecma262/multipage/ordinary-and-exotic-objects-behaviours.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-source-code.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-lexical-grammar.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html",
     "https://tc39.es/ecma262/multipage/ecmascript-language-scripts-and-modules.html",
     "https://tc39.es/ecma262/multipage/error-handling-and-language-extensions.html",
     "https://tc39.es/ecma262/multipage/ecmascript-standard-built-in-objects.html",
     "https://tc39.es/ecma262/multipage/global-object.html",
     "https://tc39.es/ecma262/multipage/fundamental-objects.html",
     "https://tc39.es/ecma262/multipage/numbers-and-dates.html",
     "https://tc39.es/ecma262/multipage/text-processing.html",
     "https://tc39.es/ecma262/multipage/indexed-collections.html",
     "https://tc39.es/ecma262/multipage/keyed-collections.html",
     "https://tc39.es/ecma262/multipage/structured-data.html",
     "https://tc39.es/ecma262/multipage/managing-memory.html",
     "https://tc39.es/ecma262/multipage/control-abstraction-objects.html",
     "https://tc39.es/ecma262/multipage/reflection.html",
     "https://tc39.es/ecma262/multipage/memory-model.html",
     "https://tc39.es/ecma262/multipage/grammar-summary.html",
     "https://tc39.es/ecma262/multipage/additional-ecmascript-features-for-web-browsers.html",
     "https://tc39.es/ecma262/multipage/strict-mode-of-ecmascript.html",
     "https://tc39.es/ecma262/multipage/host-layering-points.html",
     "https://tc39.es/ecma262/multipage/corrections-and-clarifications-in-ecmascript-2015-with-possible-compatibility-impact.html",
     "https://tc39.es/ecma262/multipage/additions-and-changes-that-introduce-incompatibilities-with-prior-editions.html",
     "https://tc39.es/ecma262/multipage/bibliography.html",
     "https://tc39.es/ecma262/multipage/colophon.html",
     "https://tc39.es/ecma262/multipage/copyright-and-software-license.html"
    ],
    "filename": "index.html"
   },
   "title": "ECMAScript® 2027 Language Specification",
   "source": "spec",
   "categories": [
    "browser"
   ],
   "standing": "good",
   "fragment": "sec-assignment-operators"
  }
 ],
 "mdnUrls": [
  {
   "slug": "Web/JavaScript/Reference/Operators/Logical_AND_assignment",
   "title": "Logical AND assignment (&&=)",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Logical_AND_assignment"
  },
  {
   "slug": "Web/JavaScript/Reference/Operators/Logical_OR_assignment",
   "title": "Logical OR assignment (||=)",
   "anchor": null,
   "url": "https://developer.mozilla.org/docs/Web/JavaScript/Reference/Operators/Logical_OR_assignment"
  }
 ],
 "standardPositions": [],
 "hasNegativeStandardPosition": false,
 "stateOfSurveys": [
  {
   "name": "State of JS 2025",
   "url": "https://2025.stateofjs.com/en-US/features/#reading_list",
   "question": "reading_list",
   "subQuestion": "reading_list",
   "path": "dataAPI.surveys.state_of_js.js2025.reading_list.reading_list.combined.allEditions.0.buckets.1.entity"
  },
  {
   "name": "State of JS 2025",
   "url": "https://2025.stateofjs.com/en-US/features/#syntax_features",
   "question": "features",
   "subQuestion": "syntax_features",
   "path": "dataAPI.surveys.state_of_js.js2025.features.syntax_features.combined.allEditions.0.buckets.3.entity"
  }
 ],
 "chromeUseCounters": {
  "percentageOfPageLoad": 0.20349957,
  "url": "https://chromestatus.com/metrics/webfeature/timeline/popularity/378"
 },
 "interop": [],
 "wpt": null,
 "developerSignals": null,
 "bugs": {
  "chrome": [
   "https://bugs.chromium.org/p/v8/issues/detail?id=10372"
  ]
 },
 "baselineLowDateAsObject": "2020-09-16T00:00:00.000Z",
 "baselineHighDateAsObject": "2023-03-16T00:00:00.000Z"
}