filmov
tv
What are Pure Functions? | Javascript Functions Tutorial
Показать описание
What are Pure Functions? In this Javascript Functions tutorial, you will learn what pure functions are, how to code pure functions, and how pure functions will help your code be clean, easier to test, and easier to debug.
What are Pure Functions? | Javascript Functions Tutorial
(00:00) Intro
(0:15) What are pure functions?
(0:26) Why write pure functions?
(0:58) Rules for pure functions
(1:36) A look at Rule #1
(3:15) Always provide at least one parameter
(4:02) A look at Rule #2
(6:08) Impure function examples
(8:43) Refactoring to pure functions
(11:58) Higher Order Functions
(14:05) Review of Pure Functions
📚 References:
"What Is a Pure Function in Javascript?"
"What is a Pure Function?"
"So You Want to Be a Functional Programmer (Part I)"
✅ Follow Me:
Was this tutorial about Pure Functions in Javascript helpful? If so, please share. Let me know your thoughts in the comments.
#pure #functions #javascript
Комментарии