Class
A blueprint for making objects that bundle data with actions.
What is Class in JavaScript?
Class — A blueprint for making objects that bundle data with actions.
class Book {
constructor(title) {
this.title = title;
}
}
const guide = new Book("JavaScript");
Level: Journeyman · More JavaScript terms at this level
Updated