TypeScript is pretty much there to help IDEs perform static analysis on your JS code.
With a language like JS, I would much rather have dynamic analysis...
...and why don’t we give it a REPL or notebook interface while we’re at it? How about hitting a button or key to update a function you just edited in the running code?