Introduction to Functional Programming

Learn what functional programming means and what it looks like in JavaScript. Learn how to discuss its merits and drawbacks.


Functional programming is a common paradigm in JavaScript. When we say it’s a paradigm, we mean it’s a way of thinking about and writing code that follows certain design principles.

Object-oriented programming aims to keep data and behavior together into a single item. Data and the methods used to work with that data should be together in one unit. Directly manipulating that data is acceptable.

Functional programming aims to separate data from behavior. It aims to keep data separate from the functions that work on it. In doing so, it results in functions that are pure and reusable.

Get hands-on with 1000+ tech skills courses.