
Apply functional programming in JavaScript by building pure functions to get and update score and tries, using immutable data, and recording results with a modular, testable workflow.
Practice avoiding mutations in JavaScript by modifying exercise two A and two B to ensure changes don’t affect the original array, and produce fresh arrays that track the updates.
Learn how to prevent mutation in JavaScript objects by cloning with a deep clone function (JSON.stringify/parse), using const, and cloning before updates to scores and tries.
Learn function composition in JavaScript by building a pipeline that trims, removes punctuation, splits into words, filters articles, and reduces to a final array; compare compose and pipe.
Explore currying and composition by building a curried get user function for the user array. Compose a specialized function that updates Henry's score and tries, returning a new array.
Learn to set up and use lodash for functional programming in JavaScript, focusing on lodash fp, auto currying, and composing map, filter, and reduce.
Explore Ramda, a functional JavaScript library, highlighting immutable, side-effect-free, auto-curried functions and data-last design, with examples of map, filter, reduce, and pipe.
Refactor a JavaScript project with Ramda, linking via CDN, converting mutating code to pure functions, and applying pipe, curry, clone, map, reduce, and update score and tries.
Learn how recursion replaces loops by defining a function that calls itself to solve problems like factorial, using the recursive case and base case, and observe stack unwinding in JavaScript.
Are you wanting to learn how to apply functional programming in JavaScript? Have the concepts been a bit difficult to grasp? Are you not quite sure how functional programming differs from other approaches used in JavaScript? If so, this course is for you!
The functional programming paradigm was difficult, at first, for me to grasp and implement. Therefore, I wanted to create a course that would help others make the leap and begin applying functional programming techniques into their own code. In this course you will learn techniques that you can apply today. But remember, you don't need to implement everything immediately. Implement those things that make sense and grow into it slowly.
In this course I have taken the approach of dissecting a technical definition of functional programming and using that definition as the structure of the course. We will break it down into pieces. Focus on those pieces and the techniques you can use right away. Each new concept will build on the previous concepts. And in the end you will see all the concepts come together.
If you learn by doing, this course gives you plenty of chances to work on exercises and then sit back and watch as I go through the exercise. By doing and then watching my approach, you will learn how to apply functional programming concepts to JavaScript.
Jump in today and begin learning a different way of using JavaScript!