function calculatefood (food, tip) { tip_percent = tip / 100; tip_amount = food * tip_percent; total = food + tip_amount; return [tip_amount, total]; } const [tip, sum] = calculatefood(100, 20); console.log(tip); console.log(sum);