(upbeat music) … - [Instructor] So now I'm going to show you … how I solve this challenge. … I want to emphasize, again, … that this is just one of the many ways … that it could've been done. … You might've done it differently, … and that's probably just as good. … So first let's decide what our input criteria … is going to look like. … I decided that when I was solving this problem, … each of these was going to contain a series of functions. … To do an example now, we'll just do one function, … but I decided that this function … was going to take one argument, … which is the current value of this field, … up in our current input values object, … and these functions were going to test something. … So for example, for our first name, … we want to test if the length of the value, … value.length, … is greater than or equal to two. … And then if this was true, … I wanted to return just an empty string, … and if it was false, I wanted to return an error message. … So we can say first name must be at least two characters. …
- 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.