Check out a free preview of the full Code Transformation and Linting with ASTs course

The "Challenge 8: Arrow Function" Lesson is part of the full, Code Transformation and Linting with ASTs course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, students add support for arrow function expression.

Preview
Close

Transcript from the "Challenge 8: Arrow Function" Lesson

[00:00:00]
>> Kent C. Dodds: So you're gonna do the second exercise, npm start exercise babble 2.
>> Kent C. Dodds: And we added another thing to the mix and that is this multiply function but it's a narrow function, not a function declaration. And so we need to be able to get the name of that thing.

[00:00:25]
And actually just to save on time and we'll just do both of this together cuz it all is kinda related. Let's go ahead and skip ahead to step three. And this is the last step for our babble plugin and all this does is it adds another function expression.

[00:00:43]
And so yeah, just update your babble plugin so it can handle both of those cases.
>> Kent C. Dodds: Shoot, no rats, no doing that gives you the solution, I hadn't thought about that, rats. Okay forget it. Go back to,
>> Kent C. Dodds: Go back to 2. We'll just do one at a time.

[00:01:09]
>> Kent C. Dodds: But if you want to you can add that to your test and do that if you finish early.

Learn Straight from the Experts Who Shape the Modern Web

  • In-depth Courses
  • Industry Leading Experts
  • Learning Paths
  • Live Interactive Workshops
Get Unlimited Access Now