Answer to Question #279502 in HTML/JavaScript Web Application for dina

Question #279502

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


1
Expert's answer
2021-12-14T13:34:06-0500
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!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS