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 question mark in javascript?
What are the main features of javascript?
How to enabled 'Strict' mode in JavaScript?
Are there any predefined constant provided by the browser with the key code values that can be reused?
What is differential inheritance?
What is the difference between Local Storage and Session Storage?
How many types of data types are there?
What is difference between java and javascript?
How do I run javascript in chrome?
What are the variables in javascript?
How do I link an external javascript file to html?
Should you disable javascript?
What is the Infinity property used for in Javascript?
Explain how to write class methods vs. Instance methods.
What are anonymous functions in Javascript?