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 Posted / hrpatelsoft@gmail.com
{model: "Honda", color: "white", year: "2010", country: "UK"}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is hoisted in javascript?
Will javascript be replaced?
How are javascript and ecma script related?
Does javascript have the concept level scope?
Why is javascript so popular?
What is the difference between sessionstate and viewstate?
What is enum with example?
List out the Mouse Events?
How to write hello world on the web page?
Is there any class in javascript?
What does 3 dots mean in javascript?
Why javascript is so popular?
How to remove duplicates from javascript array?
How to select an element by id and swapping an image?
What is difference between scripting and programming?