The new ES6 classes are also a syntactic sugar on prototype pattern. They utilize the underlying prototypes to achieve inheritance.
JS uses these prototypes to achieve inheritance. When an object gets attached to prototype chain of another object then its properties and methods are available in that object. This way to achieve inheritance is also known as delegation.