This course has been updated! We now recommend you take the Functional-Light JavaScript, v3 course.

Check out a free preview of the full Functional-Light JavaScript, v2 course:
The "Challenge 5: Purifying Closure" Lesson is part of the full, Functional-Light JavaScript, v2 course featured in this preview video. Here's what you'd learn in this lesson:

In this challenge, students rewrite a closure to be more pure.

Get Unlimited Access Now

Transcript from the "Challenge 5: Purifying Closure" Lesson

>> Kyle Simpson: Based upon that knowledge of closure, you have a simple exercise before your exercise 5. Actually, it's gonna seem way too simple, because it's only a couple of lines of code to write. But as they say, the devil's in the details, we're gonna spend quite a bit of time talking about the solution and some of those implications.

[00:00:17] We'll give you just three or four minutes, because this really is only a couple of lines of code. But then we're gonna come back and talk about that in much more detail.