SpinSpire logo

Classes

Classes

class movies {
constructor(type) {
this.type = type;
}
}
const comedy = new movies("comedy");
console.log(comedy.type);
// 'Will display comedy'