While I actually don't favor anything over vanilla JS, if you absolutely want to compile to JS from something else, Elm seems to offer some cool stuff. I've dabbled with it and it is a lot of fun. Wish it were more popular.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.