This is the code repository for Mastering JavaScript Functional Programming - Third Edition, published by Packt.
Write clean, robust, and maintainable web and server code using functional JavaScript and TypeScript
Functional programming is a programming paradigm that uses functions for developing software. This book is filled with examples that enable you to leverage the latest JavaScript and TypeScript versions to produce modern and clean code, as well as teach you to how apply functional programming techniques to develop more efficient algorithms, write more concise code, and simplify unit testing.
This book covers the following exciting features:
- Understand when to use functional programming versus classic object-oriented programming
- Use declarative coding instead of imperative coding for clearer, more understandable code
- Know how to avoid side effects and create more reliable code with closures and immutable data
- Use recursion to help design and implement more understandable solutions to complex problems
- Define functional programing data types with or without TypeScript, add type checking, and implement immutability
- Apply advanced containers to get better structures to tackle errors and implement async programming
If you feel this book is for you, get your copy today!
All of the code is organized into folders. For example, Chapter05.
The code will look like the following:
// reverse.ts
const reverseString = (str: string): string => {
const arr = str.split("");
arr.reverse();
return arr.join("");
};
console.log(reverseString("MONTEVIDEO")); // OEDIVETNOM
Following is what you need for this book: If you are a JavaScript or TypeScript developer looking to enhance your programming skills, then this book is for you. The book applies to both frontend developers working with frameworks such as React, Vue, or Angular as well as backend developers using Node.js or Deno.
With the following software and hardware list you can run all code files present in the book (Chapter 1-12).
Chapter | Software/Hardware required | OS required |
---|---|---|
1-12 | JavaScript ES2022 | Windows, Mac OS X, and Linux |
1-12 | Node 19 | Windows, Mac OS X, and Linux |
1-12 | TypeScript | Windows, Mac OS X, and Linux |
We also provide a PDF file that has color images of the screenshots/diagrams used in this book. Click here to download it.
Federico Kereki is a Uruguayan Systems Engineer, with a Master's degree in Education, and over 30 years of experience as a consultant, system developer, and writer. Currently a Subject Matter Expert at Globant, he has taught at Universidad de la República, Universidad ORT Uruguay, and Universidad de la Empresa. He has written articles and booklets on programming, web development, security, and open source topics for blogs, magazines, and websites. He has also written several books, including Modern JavaScript Web Development Cookbook and the upcoming Data Structures and Algorithms in JavaScript. He resides, works, and teaches in Uruguay, but he wrote the first edition of this book while working in India, and the second edition during a sojourn in Mexico.
- Mastering JavaScript Functional Programming
- Mastering JavaScript Functional Programming - Second Edition
- Modern JavaScript Web Development Cookbook
If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.