Ruby - Loops and Iteration
How do you write a Ruby
loop that runs indefinitely without any exit condition?loop that runs indefinitely without any exit condition?loop do ... end syntaxloop do ... end construct runs the block repeatedly until a break is called.break, loop do; ... end runs infinitely.loop do; puts 'Running'; end correctly uses loop do ... end with no break, creating an infinite loop.loop do ... end without break? Yes. [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions