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 do you use javascript for?
Auto insurance project..How to explain project in interviews.Using Automation tool (selenium).
How to prevent a window not to be clicked or selected any way in java script?
hi i want validations for two dropdown lists in java script.when user enter to second dropdown list by skipping first dropdown list we should get alert box. please help me very urgent
The below script is working Internet browser but not working in mozilla plz find that good way... function doSubmit(op){ var rowcount=document.getElementsByName ("parameterTypeId").length; var parameterGrade; var performance; var goal; if(op == "save"){ for (var i=0; i < rowcount; i++) { var param=eval("document.forms [0].parameterGrade"+i); if(param.value != "select"){ return true; } } alert("Please rate atleast one attribute"); return false; }//if ends here
What is the use of ‘debugger’ keyword in javascript code?
What are the characteristics of javascript ‘strict mode’?
Name some of the built-in methods and the values returned by them.
Is function a data type in javascript?
What will happen if an infinite while loop is run in Javascript?
Which keywords are used to handle exceptions?
What is the scope variable in javascript?