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 |
What are javascript objects?
How do I activate javascript on my phone?
What is the use of a number object in javascript?
What is escape & unescape String functions in JavaScript?
What is the real name of JavaScript?
what is the different between html and java?why the java is required in internet?
Who created npm?
How to test 404 page in QA
How to reload the current page?
Which built-in method returns the calling string value converted to lower case?
What is meant by object oriented programming?
What is a noscript tag?