1.Split the bill
BeginnerA dinner costs ₹1,850 and 4 friends split it equally. Print each share with exactly two decimal places, like Each person pays ₹462.50.
Show hint
Divide, then format with toFixed(2) inside a template literal.
Show solution
const total = 1850;
const people = 4;
console.log(`Each person pays ₹${(total / people).toFixed(2)}`);Each person pays ₹462.50