Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 460 Bytes

string_templates_bug_fixing_№5.md

File metadata and controls

18 lines (15 loc) · 460 Bytes

Description

Oh no! Timmy hasn't followed instructions very carefully and forgot how to use the new String Template feature, Help Timmy with his string template so it works as he expects!

def build_string(*args)
  "I like #{args.insert(args.length,", ")}!"
end

My Solution

def build_string(*args)
  "I like #{args.join(', ')}!"
end