Ruby - Basics and Runtime
What is the main difference between
puts and print in Ruby?puts and print in Ruby?puts behaviorputs prints the given value and adds a new line automatically after it.print behaviorprint prints the given value but does not add a new line after it.puts adds a new line after output, print does not. -> Option Aputs adds newline = C [OK]15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions