Ruby - Basics and Runtime
Find the error in this Ruby code:
puts "Hello" print "World" p Hello
puts "Hello" print "World" p Hello
p Hello is invalid because Hello is not defined as a variable or string; it needs quotes.puts "Hello" and print "World" are correct syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions