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 3+4+"7" evaluate to?
What is console.log()?
What can be the challenges during testing a program or a system?
What is the use of dom?
What are self Executing Functions?
Write a Program of Simple Calculator in JavaScript using HTML.
Explain the different types of pop-up boxes you can create in JavaScript.
what is flux in javascript?
What is difference between callback and promise?
Is function a data type in javascript?
How do you send a message to the browser in JavaScript?
What are the limitations of javascript?