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 difference between rootscope and scope?
What is scope javascript?
Which built-in method returns the calling string value converted to lower case?
Can you run javascript in notepad?
Name the types of functions.
Explain what is pop()method in JavaScript?
What is the syntax of ‘self invoking function’? Give an example?
List some of the advantages of javascript.
What are the primitive data types in JavaScript?
What is the purpose of 'this' operator in JavaScript?
Define event bubbling?
What is npm javascript?
Difference json arrary vs json object ?
What exactly does javascript do?
What is the role of a strict mode in javascript?