Question #279502

create a public class named monday. this class shall contain the main method


Expert's answer

class Monday {
   constructor(day) {
      this.day = day;
   }
   getDetails() {
      return (`The day name ${this.day}.`)
   }
}
let days = new Monday("Monday");

console.log(days.getDetails());

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS