The demo problem
JavaScript lets you move fast. It also lets small wrong assumptions reach your demo.
A value from a form is a string. An API field may be missing. A function may return null when your UI expects text. These bugs often appear only when a judge clicks a path you did not test.
One idea
TypeScript does not make your app correct. It makes many bad assumptions visible before you run the app.
Think of it as a build-time check for your JavaScript decisions.