Classes were brought to JavaScript in ES2015. This allows JavaScript to act more like traditional OO languages. Let’s look at how we create a class in JavaScript.
class Animal {}
let gorilla = new Animal();
That’s it!
Happy Coding!
Clay Hess