mirror of
https://github.com/kataras/iris.git
synced 2025-01-24 03:01:03 +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);
|