Closed m00se333 closed 5 years ago
Hi @m00se333,
Thank you for opening this issue and providing feedback. It looks from your code snippet that you may be missing the ?
at the end of .start_with?
which is likely the cause of this error:
def first_wa(array)
array.find do |x|
x.start_with("wa")
end
end
You solution looks valid otherwise. As this appears to be related to the solution, I am going to close this issue.
I have an issue with the fourth test in this lab that requires one to create a method that returns the first element in an array beginning with "wa". I have a method that works out in irb and here it is:
Yet I am met with a method error in learn, check it out:
The issue is that I have used
.start_with?
in another method in this very same lab and passed that test. What's up?