Check out a free preview of the full JavaScript: The Hard Parts, v2 course

The "Closure Exercises" Lesson is part of the full, JavaScript: The Hard Parts, v2 course featured in this preview video. Here's what you'd learn in this lesson:

Students are then instructed to continue pair programming with closure exercises. - Exercise: http://csbin.io/closures - Solution: https://github.com/FrontendMasters/fm-snippets/blob/main/javascript-hard-parts-v2/closures.js

Preview
Close

Transcript from the "Closure Exercises" Lesson

[00:00:00]
>> Will Sentance: You know what? It is pair programming, it's time, we're taking this very nicely paced, it's wonderful, we're gonna do some pair programming, folks. I think at this point, get back back with your same partners, go to csbin.io/closures and you're gonna see what we did here, and you're gonna start to see a whole bunch of closure challenges.

[00:00:18]
Right after a 20 minute pair programming session, we're gonna come back together and we're gonna see how closure works under the hood and we're talking lexical scoping. I'm going to tell you the one five letter word, not a word five, word phrase that will, I'm not to make this joke anymore because somebody apparently was upset that it definitely did not get them a senior developer job for knowing this phrase.

[00:00:40]
>> Speaker 2: [LAUGH]
>> Will Sentance: So but if you know this phrase, you will get a senior developer job like that, I want to promise you right now you say those five words, you're gonna see it in another country. All right, back to pair programming.

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