When comparing Js_of_ocaml vs Python (via Skulpt), the Slant community recommends Js_of_ocaml for most people. In the question“What are the best languages that compile to JavaScript? ” Js_of_ocaml is ranked 33rd while Python (via Skulpt) is ranked 34th. The most important reason people chose Js_of_ocaml is:
Js_of_ocaml brings all OCaml features to Javascript: static typing, type inference, modules, functional programming style...
Ranked in these QuestionsQuestion Ranking
Pros
Pro All OCaml features
Js_of_ocaml brings all OCaml features to Javascript: static typing, type inference, modules, functional programming style...
Pro Suspensions
You can write blocking methods that don't cause the whole page to hang, something difficult to do in languages targeting Javascript.
Pro Interactive REPL
You can evaluate new Python code in the browser written by the user.
Cons
Con Documentation
Documentation is still scarce
Con Python 2.6
Skulpt implements an outdated version of the Python language.