Type-script typescript init //tsconfig.json tsc -init ab is file m "rootDir":"./src" and outDir:"./dist" kardo. now run ts file using tsc -w -automatically js file created in dist folder . nd do index.html -> <script src="./index.js"></script>