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
What is the potential disadvantage of using a sticky session?
How to read a cookie using javascript?
What does break and continue statements do in javascript?
Can you use javascript to hack?
How can you read properties of an Object in JavaScript?
What is new function in javascript?
just for testing
Describe what u had done today?
How do you write an event emitter base class that allows you to add event listeners?
Are javascript variables global?
What's the purpose of javascript?
What is the role of break and continue statements?
What do ellipses mean in javascript?
What are the advantages of using external javascript?
What are self invoking functions?