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!

- 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
In this video, we'll convert our anonymous function into an arrow function.
Arrow Functions
( ) => {
console.log("Hello");
}
( ) => console.log("Good bye");
Checkout this workshop on Arrow Functions for more details and examples.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Roald Jurrian Kamman
Front End Web Development Techdegree Graduate 15,544 PointsKeep It Stupidly Simple KISS on arrow functions.
1 Answer
-
Hayden Lau
4,186 PointsWhy function executeCallback(callback) { callback(); }; did not also get converted into arrow function?
Posted by Hayden LauHayden Lau
4,186 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