Run it in the Browser
Video Lecture
Description
Create a file called foo.html
<!DOCTYPE html>
<html>
<head>
<title>TypeScript Crash Course</title>
</head>
<body>
<script src="foo.js"></script>
</body>
</html>
Add this line to the end of your foo.ts
try {
document.body.innerHTML = fred.getGarply()
} catch (e) {}
Recompile
tsc foo.ts
And open foo.html in your browser.