iris/_examples/examples/advanced/cloud-editor/www/scripts/app.ts
Gerasimos (Makis) Maropoulos 55c250c93a Add More Examples & Categorized in Folders & TOC
Former-commit-id: ce4d711a75a4ba08ffab075e6baa88724725885b
2017-03-24 00:22:05 +02:00

17 lines
252 B
TypeScript

class User{
private name: string;
constructor(fullname:string) {
this.name = fullname;
}
Hi(msg: string): string {
return msg + " " + this.name;
}
}
var user = new User("kataras");
var hi = user.Hi("Hello");
window.alert(hi);