Answer the question
In order to leave comments, you need to log in
How to register for codewars?
Just started learning Ruby. There are no tasks at all in the books to consolidate the material. I found codewars.com, tried it in incognito mode, liked it, decided to register and... ran into a problem. I can't figure out how to register there. It is clear that you need to enter your data in the code, but the site does not accept any of the options.
Please tell me what the code should look like.
I understand that "you need to solve a couple of problems." Please do NOT write about it. Better answer to the point. What do you need to write to register.
This is the code in the registration form:
class Person
def initialize(name)
@name = name
end
def greet(other_name)
"Hi #{other_name}, my name is #{name}"
end
end
PS: and yes, I'm a beginner and I'm not familiar with OOP yet.
Answer the question
In order to leave comments, you need to log in
If you can't solve the problems when registering, then it's too early.
Here is a list of resources to practice
If you are new to OOP Ruby: introducing-ruby-oop
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question