Craig Buckler examines the proposed class fields feature of JavaScript, which aim to deliver simpler constructors with private and static members.
Tag: ES6 classes
JavaScript’s New Private Class Fields, and How to Use Them
JavaScript Object Creation: Patterns and Best Practices
Jeff Mott guides you through a step-by-step approach to JavaScript object creation — from object literals to factory functions and ES6 classes.
JavaScript Design Patterns: The Singleton
Samier Saeed walks you through the best way to implement a singleton in JavaScript and examines how that has evolved with the rise of ES6.
JavaScript Design Patterns: The Observer Pattern
Camilo Reyes looks at the observer pattern — a handy pattern to use for keeping parts of a page in sync in response to events and the data they provide.
Patterns for Object Inheritance in JavaScript ES2015
Tim Severien looks at different possibilities for code reuse with ES2015 classes, exploring various ways of implementing multiple inheritance in ES6.