Is Ruby better than JavaScript?
JavaScript is more modular than Ruby because it is up to 20 times faster in certain cases. Ruby is better suited for high CPU intensive application development, such as graphics and image processing.
You can check the comparison of these languages here.