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
Get step-by-step solutions from verified subject matter experts
