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 is JavaScript?
Explain the different types of pop-up boxes you can create in JavaScript.
Does javascript support automatic type conversion?
How to write hello world on the web page?
what is a difference of subclass and main class
whether javascript runs on client side or server-side?
What are the variable naming conventions in javascript?
What does it mean in javascript?
What does double mean in javascript?
Why is java better than javascript?
How can you identify a function?
What is webpack used for?