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 |
How to embed javascript in a web page?
How do I view javascript in chrome?
What are javascript closures?when would you use them?
How do I run javascript on my iphone?
What does === mean in js?
How do you write an if statement in javascript?
What is the use of a map object in javascript?
How can you convert the string of any base to integer in JavaScript?
How do I open javascript console?
why we calld java object orinted programming language??
How much do javascript programmers make?
What is the difference between JavaScript and jscript?