Hello World Program in Typescript
console.log("Hello World!");
In a simple program like this, valid Typescript code is also valid Javascript code.
If you compile it into Javascript, and run the output JS program, then you will get the following output:
Hello World!
The generated Javascript program will exactly look the same as the original Typescript program in this simple example:
console.log("Hello World!");
What's Next
If you are interested in learning Typescript programming, then go ahead and set up a development environment, for both Javascript and Typescript.
- Next Step: Typescript development environment setup
C C++ C# Clojure Crystal D Dart Erlang F# Go Haskell Java Javascript Julia Kotlin Lua Python Rust Scala Swift