let dessert='cake',drink='orange'; let food={ dessert:dessert, drink:drink, } console.log(food) //{dessert:'cake',drink:'orange'}
let dessert='cake',drink='orange'; let food={ dessert, drink, } console.log(food) //{dessert:'cake',drink:'orange'}
let dessert='cake',drink='orange'; let food={ dessert, drink, breakfast:function(){} } console.log(food)
let food={ dessert, drink, breakfast(){} } console.log(food) //{dessert:'cake',drink:'orange',breakfast:f}