{"size": 365, "ext": "js", "max_stars_repo_path": "script.js", "max_stars_repo_name": "hayashiyoshino/javascript_practice", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "script.js", "max_issues_repo_name": "hayashiyoshino/javascript_practice", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "script.js", "max_forks_repo_name": "hayashiyoshino/javascript_practice", "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": 21.4705882353, "max_line_length": 52, "alphanum_fraction": 0.5753424658}
var items = [
{ name: 'じゃがいも', price: 50, count: 3 },
{ name: '人参', price: 60, count: 1 },
{ name: '豚肉', price: 200, count: 1 },
{ name: '玉ねぎ', price: 50, count: 2 }
];

function higherPrice (targetPrice) {
  for (var i=0; i<items.length; i++) {
    if (items[i].price*items[i].count>targetPrice) {
      window.alert(items[i].name);
    }
  }
}

higherPrice(120);
