Functional Programming in JavaScript for Beginners
Functional programming is not a new approach to coding, but it has grown in popularity in recent years. This is because, once programmers understand the basics behind the technique (and are able to write clean and reliable code using it), applications written using a functional approach are much easier to
One term you might hear in the JavaScript world is "higher-order function." Today, we'll explore what it means to be a higher-order function and look at some examples in JavaScript!
Constant confusion: why I still use JavaScript function statements
Back in the late 90’s — when I learned JavaScript — we were taught to write the “Hello World” function using a function statement. Like this… function helloWorld() { return ‘Hello World!’; }These days it seems all the cool kids are writing the “Hello World” function like this… const helloWorld = () => 'Hello
A Gentle Introduction to Functional JavaScript: Part 4
In the last article of our four-part introduction to functional programming in JavaScript, we looked at higher-order functions. In this article we discuss how to use these new tools with style.
A Gentle Introduction to Functional JavaScript: Part 3
In the last article, we saw how functional programming can be used with arrays. In this article we examine higher-order functions—functions for making functions.
A Gentle Introduction to Functional JavaScript: Part 2
In the previous article, we saw how functions can be used to make certain code abstractions easier. In this article we apply these techniques to arrays and lists.
A Gentle Introduction to Functional JavaScript: Part 1
What is all the hype about Functional JavaScript? And why is it called functional? It’s not as though anyone sets out to write dysfunctional Javascript. What is it good for? Why would you bother?