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 is JavaScript?

0 Answers  


Explain the different types of pop-up boxes you can create in JavaScript.

0 Answers  


Does javascript support automatic type conversion?

0 Answers  


How to write hello world on the web page?

0 Answers  


what is a difference of subclass and main class

0 Answers  






whether javascript runs on client side or server-side?

2 Answers  


What are the variable naming conventions in javascript?

0 Answers  


What does it mean in javascript?

0 Answers  


What does double mean in javascript?

0 Answers  


Why is java better than javascript?

0 Answers  


How can you identify a function?

0 Answers  


What is webpack used for?

0 Answers  


Categories