Hello World



examples/hello_world.ts
document.body.textContent = 'Hello World!';

examples/hello_world.html
<!DOCTYPE html>
<html>
  <head>
    <title>TypeScript Hello World</title>
  </head>
  <body>
    <script src="hello_world.js"></script>
  </body>
</html>

Compile TypeScript to JavaScript


./node_modules/.bin/tsc examples/hello_world.ts