Advertisement
728x90
javascript
1var car = new Vehicle("Honda", "white", "2010", "UK");
2
3console.log(car);
4
5function Vehicle(model, color, year, country) {
6
7this.model = model;
8
9this.color = color;
10
11this.year = year;
12
13this.country = country;
14}Choose the correct output:
A
UndefinedB
ReferenceErrorC
nullD
{model: "Honda", color: "white", year: "2010", country: "UK"}Advertisement
Responsive Ad
1of86