Ruby - Variables and Data Types
What will be the output of this Ruby code?
name = "Bob"
age = 25
puts "#{name} is #{age} years old."name = "Bob"
age = 25
puts "#{name} is #{age} years old."name and age hold "Bob" and 25 respectively.#{name} and #{age} which will be replaced by their values.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions