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: Functional parts - JavaScript Tutorial

From the course: Learning Functional Programming with JavaScript ES6+

Start my 1-month free trial

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…

Contents