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

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!