AI Features

Classes

In this lesson, you will learn how JavaScript classes improve the language.

Constructor functions

We often need to create many objects of the same kind, like users or cars. In object-oriented languages, a class is often used for this purpose. JavaScript, being a prototype-based language, has something called constructor functions.

 ...
Ask