Ruby - Basics and Runtime
What does the Ruby method
p do differently compared to puts?p do differently compared to puts?p outputs the object using its inspect method, showing quotes for strings and adding a newline.puts outputs the string without quotes and adds a newline.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions