JavaScript to Ruby Compiler

A simplistic and naive compiler to convert basic JavaScript to Ruby. Built on top of Babel.

Far from perfect. No where near complete. Kinda fun.



Click to open each set of examples that you can copy-paste into the JS editor

But, why?

I built this when I first trying to learn both Ruby and Compilers. I had spent years as a JavaScript developer and I wanted to learn about all of the differences and similarities between the languages. I hope that this can serve as a semi-helpful resource for those going from JS to Ruby.

by Jamie Halvorson