Ruby - Basics and Runtime
How can you print each element of an array with quotes and a newline in Ruby using
p inside a loop?p inside a loop?p on each element.array.each { |e| p e } calls p on each element, printing with quotes and newline; other options misuse p or combine methods incorrectly.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions