0 == ,
new Array(5).join("a"-10) + " Batman!", and more. Trying to develop with libraries gets really frustrating when you don’t know, until runtime, whether a function wants a String, a number, or an object of some sort.
So why Vite?
Vite is a development server that transparently serves your TypeScript files during development, so you never have to continually rebuild your codebase in order to test your TypeScript. When you make a change to a source file, it automatically is applied to your rendered version in the browser! It’s really handy.
How Do I Get Vite?
npm create vite@latest -- --template=vanilla-ts project-name-here
cd project-name-here && npm i
npm run dev
That will use the Vanilla TypeScript template to create a project, install the dependencies and launch your application at localhost:5173. Any changes you make to src/main.ts will immediately be shown in your browser tab.