Execution Instructions
There are two ways to execute :
- Command Line
tsc {{path-to-Typescript-file}}.ts
node {{path-to-Javascript-file}}.js
- Browser
Compile the typescript file
tsc {{path-to-Typescript-file}}.ts
Call the compiled javascript from the HTML
<body>
<script src="test.js"></script>
</body>
Check the browser console for output.