In how many ways items can be added in an array in Ruby?
Answer Posted / Ashutosh Yadav
"Items can be added to a Ruby array using the << (append) or push methods. The push method returns the new length of the array, while the << operator does not."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers