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 Callback Functions in JavaScript!
You have completed Callback Functions in JavaScript!
Preview
In this video, we'll explore callbacks that can take arguments.
This video doesn't have any notes.
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
For example, this callback
function has one argument and
0:00
this callback can take two arguments.
0:02
Launch the workspace with this video. We
have three div elements on the webpage.
0:05
In the accompanying JavaScript file,
we're selecting the elements and
0:14
storing them in variables.
0:18
Div1, div2 and div3.
0:20
Below, we have three functions.
0:23
One called makeRed,
0:25
that applies the background color of
red to an element that is passed in.
0:29
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