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 trialChris Beyer
969 PointsRuby Basics multiplication with arguments.
I input:
def multiply(a.b)
end
I get error oops it looks like task 1 is no longer passing. I am not sure why. Does anyone know why this error occurs because the input seems correct?
def multiply (a, b)
end
1 Answer
Jennifer Nordell
Treehouse TeacherHi there! Your code works for me if I copy/paste it in the challenge. However, it's important to note that you may not remove the previous subtract
method that was defined. Here's a tip from the instructions in the challenge.
Important: In each task of this code challenge, the code you write should be added to the code from the previous task.
This means that you must leave the previous code intact (unless explicitly instructed otherwise) and proceed to the next part.
Hope this helps!
Chris Beyer
969 PointsChris Beyer
969 PointsThank you very much!
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsCan you give Jennifer a "Best Answer" so that this question appears answered in the Community?
Thanks, Alex
William Li
Courses Plus Student 26,868 PointsWilliam Li
Courses Plus Student 26,868 PointsHi, Alexander Davison thanks for the reminder, it's done.
Next time you come across more answers that deserve the Best Answer mark, feel free to tag me.
Alexander Davison
65,469 PointsAlexander Davison
65,469 PointsOk!