Menu
×
×
Correct!
Exercise:Declare an object kindPerson from the Person interface, where all the properties are required.
interface Person {
age: number;
firstName: string;
lastName?: string;
}
let @(10): @(16) = {
age: 1800,
firstName: "Santa",
lastName: "Claus"
};
interface Person {
age: number;
firstName: string;
lastName?: string;
}
let kindPerson: Required<Person> = {
age: 1800,
firstName: "Santa",
lastName: "Claus"
};
Not CorrectClick here to try again. Correct!Next ❯ |
This will reset the score of ALL 30 exercises.
Are you sure you want to continue?