http://librarian.i2p/get/12491483354682023287/13740591213581705543
Veja: class User { fullname : string; constructor(firstname:string,lastname:string) { this.fullname = firstname + " " + lastname; } hello():string{ return "Hello, " + this.fullname; } } var user = new User("Mary", "Jane"); alert(user.hello()); Este código, quando traduzido para o JavaScript, torna-se algo semelhante ao código a seguir: var User = (function () { function User(firstname, lastname) { this.fullname = firstname...