{"size": 407, "ext": "js", "max_stars_repo_path": "exerciseJS/Cap_4/c4_7.js", "max_stars_repo_name": "florinlavric13/Exercise_JavaScript", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "exerciseJS/Cap_4/c4_7.js", "max_issues_repo_name": "florinlavric13/Exercise_JavaScript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "exerciseJS/Cap_4/c4_7.js", "max_forks_repo_name": "florinlavric13/Exercise_JavaScript", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.9411764706, "max_line_length": 62, "alphanum_fraction": 0.6584766585}
function Cars(model, anFabricatie, horsePower, price, views) {
  this.model = model;
  this.anFabricatie = anFabricatie;
  this.horsePower = horsePower;
  this.price = price;
  this.views = views;
  this.updateViews = function () {
    return ++this.views;
  };
}
var cars = [
  new Cars("VW-Passat", 2010, 156, 20000, 0),
  new Cars("Audi A8", 2015, 256, 40000, 2),

];
console.log(cars[1].updateViews());
