Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced JavaScript

You're reading from   Advanced JavaScript Speed up web development with the powerful features and benefits of JavaScript

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher
ISBN-13 9781789800104
Length 330 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Zachary Shute Zachary Shute
Author Profile Icon Zachary Shute
Zachary Shute
Arrow right icon
View More author details
Toc

Summary


Functional Programming is a programming paradigm that focuses on expressions and declarations to design an application and build a code base. Functional Programming is one of the hot new programming styles and is considered the best style for programming in JavaScript. Functional Programming can help our JavaScript be more concise, predictable, and testable. Functional Programming is built on seven key concepts: declarative functions, pure functions, higher order functions, shared state, immutability, side effects, and function composition.

Declarative functions focus on what the solution or goal is, instead of how we get the solution. Declarative functions are designed to abstract away a lot of the imperative approach to code. They help developers code more in keeping with the mental model of the developer, instead of the operational model of the machine running the code.

Pure functions are intended to make our code easier to test, easier to debug, and more flexible and reusable....

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime