mirror of
https://github.com/kataras/iris.git
synced 2025-02-19 07:26:20 +01:00
17 lines
252 B
TypeScript
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);
|