let cities = [
{ name: "Bali", flightHours: 10 },
{ name: "London", flightHours: 3 },
{ name: "New York", flightHours: 6 },
{ name: "Prague", flightHours: 3 }
];
let cityBreakOptions = cities
.filter((city) => city.flightHours < 5)
.map((city) => city.name);
console.log(cityBreakOptions);