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:

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