Skip to content

Glossary: JavaScript Beyond the Basics

Private field

Also written: #private, private fields

A `#name` property that only code inside the class can use. Using it from outside is a syntax error before the program even runs.

Where the book teaches it

Related terms

ClassGetter / setter