Question: Write a JS Code within the HTML page that asks the user for his name. The program will write a message to the HTML page

Write a JS Code within the HTML page that asks the user for his name.

The program will write a message to the HTML page content using the DOM interface.

  • If the name has an even number of characters:
    • Have a wonderful evening.
  • If the name has an odd number of characters:
    • Have a Wonderful ordinary day.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!