Closed Bug 1473590 Opened 6 years ago Closed 4 years ago

const definition incorrect

Categories

(Developer Documentation Graveyard :: General, enhancement)

All
Other
enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sebastian.zimmer, Unassigned)

References

()

Details

:: Developer Documentation Request

      Request Type: Correction
     Gecko Version: unspecified
 Technical Contact: 

:: Details

On [1] it says:

"Die const Deklaration erstellt eine Konstante, die global oder lokal in der Funktion, in der sie deklariert wird, verfügbar ist."

I think this is incorrect, because constants are not function-scoped but block-scoped, as it is correctly noted on the English page [2].

In my opinion, the sentence should be:

"Die const Deklaration erstellt eine Konstante, die global oder lokal in einem Block, in dem sie deklariert wird, verfügbar ist."


[1] https://developer.mozilla.org/de/docs/Web/JavaScript/Reference/Statements/const
[2] https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/const
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.