Can anybody explain where I'm going wrong using the ruby program? I'm having trouble remembering how to be specific enough for the computer to understand without writing too long of a code any advice would be much appreciated?
def are_you_playing_banjo(name)
name = 0
i = 0
while i <= word.length
name += "Are you playing banjo? "
char = word[i]
if char == "r" || char == "R"
puts true
elsif
puts false
end
i += 1
end
return name
end