Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Hello World

document.body.textContent = 'Hello World!';
<!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