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 trial
kelvin apian
208 Pointsplease i need more help with the "return"function and how to create a function
i don't really understand how to use the return function and how to create a function . please sorry for the noob question
1 Answer
Steven Parker
243,253 PointsBe aware that "return" is not a function, but a statement keyword. It is used inside a function to cause that function to end, and optionally give a value back to the part of the code that called it (started it running).
Did you have any more specific questions about functions? Or perhaps it will become clear if you just continue in the course and see more examples.
kelvin apian
208 Pointskelvin apian
208 Pointsthanks steven