Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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;
}



What is the output of below code var car = new Vehicle("Honda", "white", &quo..

Answer / hrpatelsoft@gmail.com

{model: "Honda", color: "white", year: "2010", country: "UK"}

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More JavaScript Interview Questions

What do you use javascript for?

0 Answers  


Auto insurance project..How to explain project in interviews.Using Automation tool (selenium).

0 Answers  


How to prevent a window not to be clicked or selected any way in java script?

0 Answers  


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

2 Answers  


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

0 Answers  


What is the use of ‘debugger’ keyword in javascript code?

0 Answers  


What are the characteristics of javascript ‘strict mode’?

0 Answers  


Name some of the built-in methods and the values returned by them.

0 Answers  


Is function a data type in javascript?

0 Answers  


What will happen if an infinite while loop is run in Javascript?

0 Answers  


Which keywords are used to handle exceptions?

0 Answers  


What is the scope variable in javascript?

0 Answers  


Categories