(upbeat techno music) … - [Instructor] To close out this course, … we're going to do a few challenges that require you … to use functional concepts to solve problems. … And our first challenge is this. … Let's say that an election has happened in our home town, … and we have an array of the votes, … which are just strings with the person's name. … Now first of all please note that none of these names … is in any way meant as a references … to any candidate who's currently running in any election. … So what we want to do is write a function … that takes this array of election votes, … and produces an object like this, … with the candidates' names, … and the number of votes that they had in the array. … Now this might not seem too hard, … but there are a few catches. … The first catch is that you're not allowed … to hard code any of these names into your function. … For all practical purposes, … assume that you don't even know … what names are in this election votes array. … We want to write a function …
- 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.