String Templates

Question

ADDQUESTION

Solution

name = "senthil"
age = 31
puts "Hello, my name is #{name} and I am #{age} years old!"
Run this
Comments by Disqus