When comparing ElixirScript vs Js_of_ocaml, the Slant community recommends ElixirScript for most people. In the question“What are the best languages that compile to JavaScript? ” ElixirScript is ranked 26th while Js_of_ocaml is ranked 33rd. The most important reason people chose ElixirScript is:
Uncluttered, yet unambiguous syntax
Ranked in these QuestionsQuestion Ranking
Pros
Pro Clear syntax
Uncluttered, yet unambiguous syntax
Pro Excellent community
The Elixir community has proved to be welcoming and very supportive.
Pro Great for concurrency
Leverages the existing Erlang BEAM VM
Pro More familiar syntax
All of the benefits of Erlang; without as steep a learning curve of prolog based syntax. Elixir is heavily inspired by Ruby's syntax which many people love.
Pro Great documentation
Elixir's documentation is very good. It covers everything and always helps solving any problem you may have. It's also always available from the terminal.
Pro All OCaml features
Js_of_ocaml brings all OCaml features to Javascript: static typing, type inference, modules, functional programming style...
Cons
Con Documentation
Documentation is still scarce