Menu
×
×
Correct!
Exercise:Add the correct types for the object below:
const car: { type: string, model: string, year: number } = {
type: "Toyota",
model: "Corolla",
year: 2009
};
Not CorrectClick here to try again. Correct!Next ❯const car: { type:, model: , year: } = { type: "Toyota", model: "Corolla", year: 2009 }; |