Skip to content


 Zabbix
 Grafana
 Prometheus
 React Three Fiber
 Threejs and TypeScript
 SocketIO and TypeScript
 Blender Topological Earth
 Sweet Home 3D
 Design Patterns Python
 Design Patterns TypeScript
   
 Course Coupon Codes
Three.js and TypeScript
Kindle Edition
$6.99 $9.99 Paperback 
$22.99 $29.99




Design Patterns in TypeScript
Kindle Edition
$6.99 $9.99 Paperback
$11.99 $19.99




Design Patterns in Python
Kindle Edition
$6.99 $9.99 Paperback
$11.99 $19.99




Run it in the Browser

Video Lecture

Run it in the Browser Run it in the Browser

Description

Create a file called foo.html

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
<!DOCTYPE html>
<html>
    <head>
        <title>TypeScript Crash Course</title>
    </head>

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

Add these lines to the end of your foo.ts

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

Recompile

tsc foo.ts

And open foo.html in your browser.