Class Method
A function defined as a member of a JavaScript class.
What is Class Method in JavaScript?
Class Method — A function defined as a member of a JavaScript class.
class Book {
constructor(title) {
this.title = title;
}
}
const guide = new Book("JavaScript");
Level: Journeyman · More JavaScript terms at this level
Updated