TypeScript | TypeScript Object Oriented Programming | Question1

Last Updated :
Discuss
Comments

Which of the following defines a property in a class in TypeScript?

property: string;

var property = "value";

function property() {}

this.property: number;

Share your thoughts in the comments