Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 446 Bytes
function dinnerParty(guests) {
var table = new Table()
, invitations = new Invitations()
, food = new Ingredients()
, chef = new Chef()
, staff = new Staff()
, cloth = new FancyTableClothWithFringes()
, dishes = new ChinaWithBlueBorders()
, dinner
;
invitations.invite(guests);
table.setTable(cloth, dishes);
dinner = chef.cook(ingredients);
staff.serve(dinner);
}