Answer Posted / Dharmendra Kumar Upadhyay
The 'next' statement in Ruby is used within loops to skip the current iteration and move on to the next one. It can be used with while, until, and for loops. The syntax looks like this:nnwhile some_condition don # code blockn if some_other_conditionn nextn endnend
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers