0
how can I make the code below in Ruby for JS.
(3...value_size).step(3) { |num|
value.insert(value_size - num, separator)
}
To step
I think of that loop for (var i = 3; i < value_size; i += 3)
, but for the method .insert
? What are your ideas?
Please translate your question into English.
– Valdeir Psr
This Question is off-topic because it’s not Written in English. It may be reopened if Translated.
– Caique Romero
Sorry, updated!
– Filipe