-
-
Save bautistaaa/75b2fe385986adb47ad33d0f5dd64634 to your computer and use it in GitHub Desktop.
TypeScript - Hello World Typescript
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Greeter { | |
constructor(public greeting: string) { } | |
greet() { | |
return "<h1>" + this.greeting + "</h1>"; | |
} | |
}; | |
var greeter = new Greeter("Hello, Ministry of Programming!"); | |
var str = greeter.greet(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment