+ 1
Ruby puts and p
in Ruby what is the difference between p and puts?
1 Respuesta
+ 2
Run the following
puts "hello"
p "hello"
You will see that p outputs a raw string showing the string notations
in Ruby what is the difference between p and puts?