Ruby - Loops and Iteration
What does the Ruby
times method do when called on an integer?times method do when called on an integer?times method purposetimes method repeats a block of code a specified number of times, starting from zero.5.times { |i| puts i } prints 0 to 4 [OK]times runs code block count times from zero [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions