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 does the attribute defer/async do when added to the script tag?
Is javascript easier than java?
What is lazy loading java?
Difference between scripting language and programming language??
How to toggle display an html element?
Is client side front end?
What is the difference between attributes and property?
List out all the falsifying tokens in Javascript?
What is the default scope in javascript?
Are java and javascript same?
Name some of the built-in methods and the values returned by them.
Difference Between JavaScript and ECMAScript?