Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Functions!
You have completed JavaScript Functions!
Preview
Functions often need specific information to perform a task. In addition to getting information from a function, you can send information to a function to change how that function works.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
But a function often needs specific
information to perform its task.
0:00
In addition to getting information from
a function, you can also send information
0:04
to a function to change
how that function works.
0:08
Let's go back to the example of you and
your magical assistant.
0:11
Your Go to the Coffee Shop
function is working well.
0:15
You get your coffee each time you say go
to the coffee shop to your assistant.
0:18
But where's the variety?
0:21
What if sometimes you want
iced tea instead of coffee?
0:23
Your current function only returns coffee.
0:26
The function is limited.
0:28
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