Question: Question 1: Create a webpage and write Javascript code to create an object named Car with the following attributes and values: Name: Mercedes Model: G-Class

Question 1:

Create a webpage and write Javascript code to create an object named Car with the following attributes and values:

Name: Mercedes

Model: G-Class

Price: 45000

Check the Price of the car, if it is more than 3000 display name, model, price and the word Too Expensive, otherwise display name, model, price and Not Expensive.

Question 2:

Use html to create the following form:

Question 1: Create a webpage and write Javascript code to create an

Use JavaScript to validate the form as follows:

a) name should be alphabets.

b) age should be more than 18.

c) mobile number should be 7 digits.

Name Age Mobile Number submit

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!