From the course: Learning Functional Programming with JavaScript ES6+
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
JavaScript: Functional parts - JavaScript Tutorial
From the course: Learning Functional Programming with JavaScript ES6+
JavaScript: Functional parts
- [Instructor] One of the nice things about learning functional programming with JavaScript is that many of the concepts we've learned have a great deal of native support in the language itself. In general, JavaScript, and in particular ES6, makes it much easier to apply many of the core functional programming concepts than if we were working in languages such as Java or C++. One of the areas where this fact is especially true is in working with objects and arrays. JavaScript provides a host of built-in functions and functionality that makes working with these constructs in a functional way incredibly easy. Built-in functions, such as map, filter, reduce, and sort make the formally complicated task of transforming array data almost trivial. As you're studying these functions and learning about what they can do you may start to wonder how these functions work under the hood. The sort function, for example. What sorting algorithm does it actually use to sort our array? Quick sort…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
JavaScript: Functional parts1m 53s
-
(Locked)
The spread operator5m 30s
-
Mapping5m 11s
-
(Locked)
Filtering6m 59s
-
(Locked)
Every/some5m 46s
-
(Locked)
Slicing3m 38s
-
(Locked)
Sorting5m 11s
-
(Locked)
Reducing6m 23s
-
(Locked)
Combining functions6m 40s
-
(Locked)
Challenge: Recreate the map function1m 3s
-
(Locked)
Solution: Recreate the map function3m 6s
-
(Locked)
-
-
-