{"size": 670, "ext": "js", "max_stars_repo_path": "js-bootcamp/basics/objects/objects-methods.js", "max_stars_repo_name": "contour66/ES6-practice-Udemy", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "js-bootcamp/basics/objects/objects-methods.js", "max_issues_repo_name": "contour66/ES6-practice-Udemy", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "js-bootcamp/basics/objects/objects-methods.js", "max_forks_repo_name": "contour66/ES6-practice-Udemy", "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": 25.7692307692, "max_line_length": 59, "alphanum_fraction": 0.6402985075}
let restaurant = {
    name: 'ASB',
    guestCapacity: 75,
    guestCount:0,
    checkAvail: function (partySize) {
       let seatsLeft = this.guestCapacity - this.guestCount
       return partySize <= seatsLeft
    },
    seatParty: function (partySize) {
        // let check = this.checkAvail(partySize)
        // if(check){
            this.guestCount += partySize
        // }
    },
    removeParty: function (partySize) {
       this.guestCapacity +=  partySize
       this.guestCount -= partySize
    }
}

// seatPArty
// removeParty
restaurant.seatParty(72)
console.log(restaurant.checkAvail(4))
restaurant.removeParty(5)
console.log(restaurant.checkAvail(4))