Beginner
Ruby
Q1 / 100
Which command prints text to the console with a newline at the end in Ruby?
Correct! Well done.
Incorrect.
The correct answer is B) puts
B
Correct Answer
puts
Explanation
puts outputs its argument followed by a newline; print does not automatically add a newline.
Progress
1/100