Sollicitatievraag bij SugarAI

How do you make classes in JavaScript?

Antwoord op sollicitatievraag

Anoniem

10 okt 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 {}