Skip to content

 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
 Course Coupon Codes
Python   TypeScript
Kindle Edition Kindle Edition
$9.99 $14.99 $9.99 $14.99
Paperback Paperback
$14.99 $19.99 $14.99 $19.99

Run it in the Browser

Video Lecture

Run it in the Browser Run it in the Browser


Create a file called foo.html

<!DOCTYPE html>

    <title>TypeScript Crash Course</title>

    <script src="foo.js"></script>


Add this line to the end of your foo.ts

try {
    document.body.innerHTML = fred.getGarply()
} catch (e) { }


tsc foo.ts

And open foo.html in your browser.