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;
}



What is the output of below code var car = new Vehicle("Honda", "white", &quo..

Answer / hrpatelsoft@gmail.com

{model: "Honda", color: "white", year: "2010", country: "UK"}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What does the attribute defer/async do when added to the script tag?

0 Answers  


Is javascript easier than java?

0 Answers  


What is lazy loading java?

0 Answers  


Difference between scripting language and programming language??

1 Answers  


How to toggle display an html element?

0 Answers  






Is client side front end?

0 Answers  


What is the difference between attributes and property?

0 Answers  


List out all the falsifying tokens in Javascript?

0 Answers  


What is the default scope in javascript?

0 Answers  


Are java and javascript same?

0 Answers  


Name some of the built-in methods and the values returned by them.

0 Answers  


Difference Between JavaScript and ECMAScript?

0 Answers  


Categories