For a fixed event date, the crew needs one rounded quantity and one calendar year. Use built-in Math and Date methods and check both in the Console.
Built-in objects save you from rewriting common utilities. This lesson combines one Math method with one Date method and keeps the output predictable for beginners.
const cafeBill = 12.4;
const roundedBill = Math.round(cafeBill);
const eventDate = new Date("2025-11-03T00:00:00Z");
console.log(roundedBill, eventDate.getUTCFullYear());
roundedUp with Math.ceil(4.2).launchYear using the UTC year of new Date('2024-05-06T00:00:00Z').5 | 2024 on its own Console line.Use Math.ceil(4.2) for the rounded-up value.
Use a fixed date string so the year is deterministic in tests.