Last active
May 30, 2023 21:12
-
-
Save fariszacina/bd122ea5566e6c84768e 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