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!

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 trial

JavaScript The Solution

Why is my last return value different from the one in video?

I have used the same values as Dave in the challenge but my last log was 879.4448810753124 instead of 1563.4575663561109. Is there anyone who could tell me what I'm doing wrong, or how this happens..

TIA

Sean T. Unwin
Sean T. Unwin
28,688 Points

Please show us your code so we can look at the issue more closely.

Steven Parker
Steven Parker
225,726 Points

If you make a snapshot of your workspace and post the link to it here, we can take a look.

1 Answer

Hey Sandra! I think I figure it out. It looks like you may have inputted 3/4 instead of 4/3 for the volume of the sphere calculation. When you input it as 3/4 instead, you end up with 879.4448810753124 as the outcome. Instead, try to switch the numbers around to be 4/3 instead, and that should give you the correct output. Hope that helps!