If you like what I do, consider supporting my work via donation
JavaScript to ClojureScript translator
This tool tries to translate as much JavaScript code into ClojureScript as it can. Keep in mind that it might fail or the result will be non-idiomatic Clojure code due to substantial differences between languages.
e.g. Clojure explicitly distincts global and local vars, but JavaScript does not
(def x 1) ;; global
(let [x 2] ;; local
(/ x 2))
Clojure's data structures are immutable by defalt
(let [x {}]
[(assoc x :y 1) x])
;; [{:y 1} {}]
Use for educational purpose.
How to contribute
If something is not translated properly, file an issue