Mark As Completed Discussion

Try this exercise. Is this statement true or false?

The following piece of code shows a Car class, its properties, and its constructor. However, it doesn't initialize all properties in the constructor. Will the following piece of TypeScript code successfully go through?

TEXT/TYPESCRIPT
1class Car {
2  name: string;
3  model: string;
4  objectInstantiatedAtDate: Date;
5
6  constructor(name: string, model:string) {
7    this.name = name;
8    this.model = model;
9  }
10}

Press true if you believe the statement is correct, or false otherwise.