string_interpolation
💬 Embed Variables with String Interpolation​
Instead of concatenating strings and variables, use Ruby's string interpolation for cleaner and more readable code. Wrap variable names inside #{}
within double-quoted strings.
name = "Bob"
age = 30
puts "Name: #{name}, Age: #{age}"