SugarAI Interview Question

How do you make classes in JavaScript?

Interview Answer

Anonymous

Oct 10, 2019

A JavaScript class is a type of function. Classes are declared with the class keyword. We will use class expression syntax to initialize a class. // Initializing a class with a class expression const y = class {}