Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialNicolas Filzi
18,021 PointsCan't make this work, don't know why!
Anyone ? :)
def valid_command?(command)
if (command == "y") || (command = "yes") || (command = "Y") || (command = "YES")
return true
end
end
2 Answers
Justin Iezzi
18,199 PointsHey Nicolas,
Your code is perfectly fine, and it should go through. I copied and pasted your code into the code challenge and it passed. Not sure why it's not passing for you, I might recommend restarting your browser and trying again. Maybe even copy your code here and paste it into the code challenge, just in case.
Let me know if you have some success getting it to work!
Nicolas Filzi
18,021 PointsIt worked perfectly, thanks a bunch Justin :)