mirror of
https://github.com/kataras/iris.git
synced 2025-01-27 04:26:33 +01:00
7c5d7cae05
Part 2. Former-commit-id: 3ccb7c259e86c0b6e5147d372aa9cff10c1b5bb1
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);
|