Looping in Ruby
Ruby has made looping much simpler to use because Ruby has much more looping methods build in. Such as .each, .each_with_index, while loops, until loops and even for loops. Some of the loops could be matched with .split methods which makes it great if you want to split at spaces as well. Because Ruby is a back end language. JS is used for both front end and back end they don't have as much build-in as language such as Ruby. they do have more of the back end therefor they have more tools to use because of that.
Because of there are more methods to choose from, choosing the right one to use could also be a bit confusing at times. Personally I prefer to use Ruby's looping methods because they give so much more options. However, maybe using JS more I could change my mind.