Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Function Parameters and Arguments 4:48
- Pass an Argument to a Function 3 objectives
- Pass Multiple Arguments to a Function 4:32
- Parameters and Arguments Review 5 questions
- Create a max() Function 2 objectives
- Variable Scope 7:01
- Function Declarations vs. Function Expressions 4:29
- Scope and Function Expressions Review 7 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
JavaScript provides separate "scopes" for each function. Any variables created within a function are not accessible outside the function, and cannot interact variables created in another function.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PLUS
Stephen Cole
Courses Plus Student 15,810 Points1 Answer
-
matthewchau2
8,343 Points1 Answer
-
PLUS
Daniela Fernandes Smith
Courses Plus Student 10,353 Points1 Answer
-
Tommy Ayrton Vasquez Reategui
Full Stack JavaScript Techdegree Student 12,717 PointsGlobal scope
1 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