Atul Unhale

Atul Unhale

  • NA
  • 9
  • 451

I am unable to run the following typescript program.

Jun 9 2018 11:40 AM
class student
{
studentID:number=100;
student:string="Ram";
feesPaid:boolean= true;
mystudent():void {
this.feesPaid;
this.studentID;
}
}
var obj= new student();
obj.mystudent();
The command promt displays the weird error : ";" is expected. Please help to understand the error.

Answers (3)