I searched extensively but couldn't find any satisfactory answer as to why there are fields in classes of typescript
class car{
name:string //Whats the use of this when we already have properties in constructor
constructor(name:string){
this.name:name;
}
}