+ 2
I'm stock in "undefined local variable or method 'fullname' for main:Object (NameError)
myArray = ["Safianu Mohammed", "mohammedsafianu"] def cutName(first_name, last_name) name = first_name + last_name end name = myArray [0..0] print name my_info = { "fullname" => "Safianu Mohammed", "skype" => "mohammedsafianu", "github" => "null" } puts fullname puts skype puts github
4 odpowiedzi
+ 5
I don't know that language but it looks like it need to enter my_info to be able to get fullname value. With javascript it would be my_info.fullname.
+ 3
Thanks for the answer :3
+ 2
This is ruby codes
+ 2
thanks to you all for the suggestions but I figured it out that I have call it inside a [braces] and will "double quote" e.g.
puts ["fullname"]
puts ["skype"]
puts ["github"]