+ 1

Ruby:

QUESTION: Will give error or not and not give than why? puts"Hello world" print"Hello world"

12th Jan 2021, 4:22 AM
Anurag Kumar
Anurag Kumar - avatar
2 Respuestas
+ 4
I don't know ruby. But all I needed to do was copy the code, go to the code playground, make a ruby code, paste the copied code there and click "Run", and I found out that it does not give error. As for why, because it follows the syntax of Ruby!
12th Jan 2021, 4:27 AM
XXX
XXX - avatar
+ 2
It's working fine, so what is your doubt? "puts" automatically add a new line at the end of its statement "print" do not add a new line at the end of its statement.
12th Jan 2021, 4:25 AM
noteve
noteve - avatar