MCPcopy
hub / github.com/sudheerj/javascript-interview-questions / Vehicle

Function Vehicle

coding-exercise/function-without-new.js:1–6  ·  view source on GitHub ↗
(model, color, year, country)

Source from the content-addressed store, hash-verified

1function Vehicle(model, color, year, country) {
2 this.model = model;
3 this.color = color;
4 this.year = year;
5 this.country = country;
6}
7
8var car = Vehicle("Honda", "white", "2010", "UK");
9console.log(car);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected