- [Instructor] In a previous video we talked … about how in java script, it's possible to return functions … from other functions. … And saw some possible applications of doing this … in our code base. … Returning functions from other functions leads us … to another very important concept in java script. … And this is something called closure. … So what is closure exactly? … Well basically, closure means that when we define a function … that returns another function, … the function that we returned still has access … to the internally scope of the function that returned it. … In this case, the function that we returned … still has access to the constant x. … Even after we return it. … To see what I mean a little better, … let's code out an example that demonstrates the closure. … First let's create a function called createPrinter. … Const, createPrinter. … And this function won't take any arguments. … And for illustrative purposes, … let's make a function body with more that one line …
- The goal of functional programming
- Declarative vs. imperative programming
- Ensuring immutability
- Arrow functions in ES6
- Passing functions as arguments
- Mapping, filtering, slicing, sorting, and reducing
- Advanced functional concepts, including recursion
Skill Level Intermediate
1. Introductory Functional Concepts
2. First-Class Functions
4. Advanced Functional Concepts
5. Code Conversion Challenges
Next steps1m 10s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.