A type error stops the run. Fix it, then log.
Goal
Fix the city type and log Nairobi.
// This would fail: const city: number = "Nairobi";
const city: string = "Nairobi";
console.log(city);function greet(name: string): string {
return "Hello, " + name;
}
console.log(greet("Kisumu"));const units: number = 12;
console.log(units.toFixed(0));interface Sale { city: string; units: number }
const row: Sale = { city: "Nakuru", units: 4 };
console.log(row.units);