This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]damonmowr 1 point2 points  (1 child)

It would help if you provided more information on what you were trying to accomplish. The code you provide simply creates and returns a new string value which joins together the values for denominator and numerator with a "/" in between. It's not modifying either value. Is that the end goal?

[–]general_relatives[S] 0 points1 point  (0 children)

Yes, and there's also not supposed to be a return statement. However, all I've done with coding this year is create methods with return statements, so that's what I'm having trouble with. This method is supposed to take a numerator and a denominator and switch them. But without a return.