What is the output of below code
var car = new Vehicle("Honda", "white", "2010", "UK");
console.log(car);
function Vehicle(model, color, year, country) {
this.model = model;
this.color = color;
this.year = year;
this.country = country;
}
Answer / hrpatelsoft@gmail.com
{model: "Honda", color: "white", year: "2010", country: "UK"}
Is This Answer Correct ? | 0 Yes | 0 No |
Does apple use javascript?
What does double mean in javascript?
How long does it take to get good at javascript?
What is the difference between java and java script?
What is object cloning
Can you have a function within a function in javascript?
how many feet does a centipeed have?
Describe javascript and vbscript.
What do you mean by enumeration?
What does “1?+2+4 Evaluate to? What about 5 + 4 + “3??
What are the types used in javascript?
How to write a script for "select" lists using javascript