Uploaded image for project: 'NetBeans'
  1. NetBeans
  2. NETBEANS-6128

JavaScript: Nullish coalescing operator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 12.5
    • None
    • None

    Description

      Nullish coalescing operator (??) is reported as syntax error.

      const foo = null ?? 'default string';
      console.log(foo);

      Some ref if needed:
      https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Nullish_coalescing_operator

      Attachments

        Activity

          People

            Unassigned Unassigned
            FFT Jayce
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: