0

In rudy, does puts and print do the same thing

Ruby puts and print

11th Feb 2019, 6:30 PM
SCP 251
SCP 251 - avatar
1 Respuesta
+ 3
Yes, but there's a difference - puts adds newline after each argument while print doesn't. You can read about this here: https://www.rubyguides.com/2018/10/puts-vs-print/
11th Feb 2019, 6:58 PM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar