Question: Javascript: Create a form with 3 inputs for name, favorite number, and email. There should also be a button for submitting the form. When the
Javascript: Create a form with 3 inputs for name, favorite number, and email. There should also be a button for submitting the form. When the user submits the form, use innerHTML to tell them what they typed into the form. "Your name is Kevin, your favorite number is 5, and your email is kevin@kevin.com." If any of the form inputs are empty, use innerHTML to tell the user to add values to the form (don't output their info to the page until all 3 areas are filled in). If the number they entered is not a number, tell them to enter a valid number. You will need to use parseInt() on the number value to convert it from a string to a number. You will also need to use an if statement with the isNaN() method to check if the number is actually a number.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
