✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Please, choose how the TypeScript works with the code like this:
interface Course { name: string; totalHours: number; id: number;}
const course: Course = {
name: "Math",
totalHours: 50
};