Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Introducing Functions in JavaScript 4:08
- Introducing Functions Review 5 questions
- Create and Call a Function 4:57
- Creating a Function 3 objectives
- Return a Value from a Function 4:32
- Return a Value from a Function 3 objectives
- Using Multiple return Statements 6:58
- Function Return Values Review 5 questions

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Functions can also give something back when they finish. This is called "returning a value," and it's common when working with functions. To return a value from a function, use the return keyword, which creates what's called a "return statement."
Resources
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Peter Huang
5,427 Points1 Answer
-
Geovani Mejia
Front End Web Development Techdegree Student 7,940 Points2 Answers
-
Karl Russell Sumando Menil
Full Stack JavaScript Techdegree Student 4,004 PointsReturn a Value from a Function Math
2 Answers
-
ja5on
10,338 Points1 Answer
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up