Question: Go to the project 0 2 - 0 2 . js file in your code editor. Create a function named verifyForm ( ) with no

Go to the project02-02.js file in your code editor. Create a function named verifyForm() with no parameters. Within the function do the following:
Declare the name variable equal to the value of the input control with the id name.
Declare the email variable equal to the value of the input control with the id email.
Declare the phone variable equal to the value of the input control with the id phone.
Insert a conditional operator that tests the truthy or falsy value of and name and email and phone using the && operator. If the result of this conditional expression is true, use the window.alert() method to display the message Thank you!, otherwise display the message Please fill in all fields.

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!