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 Posted / hrpatelsoft@gmail.com
{model: "Honda", color: "white", year: "2010", country: "UK"}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can a Javascript code redirect the user to a different page?
What do you understand by this keyword in javascript?
Can you assign a anonymous function to a variable?
How to define a anonymous function?
How do functions work in javascript?
Can you run javascript in notepad?
What is the context in javascript?
How to get checkbox status whether it is checked or not?
Is it possible to do 301 redirects in javascript ?
How to convert json string to object?
What are associative arrays in javascript?
Explain hoisting in javascript?
Explain equality operators in javascript?
Is javascript object a hash table?
how can i change colour of a image in aspx file?