Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
- Create Functions Using Arrow Syntax 4:34
- Concise Arrow Function Syntax
- Arrow Functions Review 5 questions
- Default Function Parameters 5:11
- Create an Arrow Function 1 objective
- Descriptive Comments for Functions
- Function Challenge 1:24
- Function Challenge Solution 4:28
- Testing for Number Arguments 4:02
- JavaScript Functions Review 6 questions

- 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
Learn how arrow functions provide a special, more concise syntax for creating functions. Arrow functions are similar to function expressions; they're appropriately called "arrow function expressions."
Resources
Rewrite the getArea
function declaration as an arrow function:
const getArea = (width, length, unit) => {
const area = width * length;
return `${area} ${unit}`;
};
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
PLUS
Stephen Cole
Courses Plus Student 15,810 Points1 Answer
-
Geovani Mejia
Front End Web Development Techdegree Student 7,940 Points2 Answers
-
Billy Gragasin
Full Stack JavaScript Techdegree Student 4,985 Points2 Answers
-
ja5on
10,338 Points3 Answers
-
Seth Lewis
Full Stack JavaScript Techdegree Graduate 18,191 Points2 Answers
-
ja5on
10,338 Points4 Answers
-
Dylan Carter
1,046 Pointsso the point of the arrow function in basically just because making the arrow is slightly less to type?
Posted by Dylan CarterDylan Carter
1,046 Points2 Answers
-
seth aruby
10,111 Points1 Answer
-
Alexandru Vlasnita
5,542 Points4 Answers
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