javascript code

Abstract class and method in JavaScript

The following snippet shows how to write an abstract class and method. Goals The abstract class cannot be instantiated; The abstract method must be implemented. See example online at https://codesandbox.io/s/abstract-class-and-method-clvze Did you find it interesting? Follow me on Twitter.