+ 1
Ruby:
QUESTION: Will give error or not and not give than why? puts"Hello world" print"Hello world"
2 Réponses
+ 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!
+ 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.