👩💻 Join our community of thousands of amazing developers!
Class fields are about creating properties and similar constructs directly inside the bodies of classes. This blog post is part of a series on them: Public class fields Private class fields This series replaces 2ality’s prior blog post on fields. In this post, we look at private fields, a new kind of private slot in instances and classes. This feature is part of the ES proposal “Class field declarations for JavaScript” by Daniel Ehrenberg and Jeff Morrison. [Read rest of post]...