Browsers run JavaScript, not TypeScript. Keep TypeScript in src, compile it to dist, then reference the generated JavaScript from HTML.
Compile first
index.html
<script type="module" src="./dist/main.js"></script>
Load a module
Use type="module" for modern browser code. It enables import and export, defers execution until HTML has been parsed and gives each file its own scope.
Did you know my courses are all printer-friendly? This means you can easily export them to PDF or print them for later use.
