In JavaScript you can use the OOP (Object-Oriented-Programming) feature of "classes" to construct objects which are then useful resources for your script/application.

Learn all about classes in JavaScript in this video. You will learn:

  • Basics of Classes
  • Getters and Setters
  • Static Methods
  • Inheritance and Extends
  • Polymorphism
  • Classes in Practice

You can watch the video on the the freeCodeCamp.org YouTube channel (1 hour watch).‌