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 |
What is new keyword in javascript?
Explain arrow functions?
How Can I get facebook fans/likes?
List out the Mouse Events?
What is client side in javascript?
How can you to add javascript to a page when performing an asynchronous postback?
What is the difference between script type and the script language attributes?
Auto insurance project..How to explain project in interviews.Using Automation tool (selenium).
What does js stand for?
Which built-in method returns the characters in a string beginning at the specified location?
What are the data types available in javascript? Explain
Which built-in method combines the text of two strings and returns a new string?