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 modify the `setTimeout` call to use an anonymous function.
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
If not, let's practice the steps again.
0:00
If you were able to jump to the solution,
great.
0:00
You may want to skip
the rest of this video.
0:03
If you still need to practice getting
your head around anonymous functions,
0:05
follow along.
0:09
Let's convert the function declaration
into a function expression.
0:10
A function expression is where you assign
a function to a variable, showSurprise.
0:15
To convert a function expression
to an anonymous function just
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