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 |
Explain closures in javascript?
What are the four types of javascript objects?
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; }
List few difference between primitive and non primitive javascript data types?
How would you check if a variable is null/undefined?
what are the difference unescape() and escape() functions?
How do I turn off javascript in chrome?
What is the data type of variables in javascript?
Is a relation always a function?
How to encode and decode a url in javascript?
Does spacing matter in javascript?
How can the os of the client machine be detected?