ES proposal: private class fields

1 · Axel Rauschmayer · July 17, 2019, 7:18 p.m.
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]...