TypeScript Tutorial 17: Getters

preview_player
Показать описание
Learn what getters are and how to make them work in your typescript code.

Рекомендации по теме
Комментарии
Автор

Nice tuto, I'm waiting for the next one

mimounioussama
Автор

Thanks for the course. When will you upload remaining videos??

menaeem
Автор

Thanks man I kind of learnt TS in an hour or so, as I am already in to Java an JS.

ambarishyt
Автор

Use this example for Setter method, class newPaln
{
id:number;
name:string;
constructor()
{

}
getArea()
{
return this.id+this.name;
}
setArea(id:number, name:string)
{
this.id = id;
this.name=name;
}

}
var test=new newPaln()
test.setArea(1, "suresh");
console.log(test);

sureshm
Автор

Aw it looks like there is no setters tutorial. PLaylist stops at 17

BenRacicot
Автор

what is going on everybody? Anyways I completed all ur videos and good though.

khemThapayes