Check out example codes for "ruby how to print". It will help you in understanding the concepts better.

Code Example 1

puts "string"
p "string"

Code Example 2

puts

Learn ReactJs, React Native from akashmittal.com