Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2479,7 +2479,7 @@ function sum(a, b) {

#### Answer: A

A pure function is a function that _always_ returns the same result, if the same arguments are passed.
A pure function is a function that _always_ returns the same result, if the same arguments are passed and cause no side effects.

The `sum` function always returns the same result. If we pass `1` and `2`, it will _always_ return `3` without side effects. If we pass `5` and `10`, it will _always_ return `15`, and so on. This is the definition of a pure function.

Expand Down