Lexical
Private name
Class-scoped private identifier representing a private element. An identically spelled ordinary property is not the same private name.
Formal Syntax & Structure
javascript syntaxjavascript
#fieldWorking Example
Example Snippetjavascript
class C{#n=1;read(){return this.#n;}}const o=new C();o["#n"]=9;console.log(o.read());