This course will be retired on October 31, 2026.
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 Introducing ES2015!
You have completed Introducing ES2015!
Preview
Managing context in JavaScript has always been challenging. Arrow functions will help ease the pain.
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
parts of ES2015 like aero functions,
default parameters, rest parameters,
0:00
the spread operator and destructuring.
0:03
First up, in this video,
you'll learn a new syntax for
0:06
writing JavaScript functions
using arrow functions.
0:09
Arrow functions are often
referred to as lambda function
0:13
in other programming languages.
0:15
They provide a short syntax for defining
functions and simplify function scope.
0:17
Let's have a look.
0:22
If you'd like to follow along using the
latest work space, open the work space for
0:24
this video.
0:27
I'll start by opening
the file arrowkeys.js.
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