From f998b0a3916a9c832c1725540b049ee93af10183 Mon Sep 17 00:00:00 2001 From: Mohammad Karimi Date: Wed, 23 Oct 2024 12:27:17 +0330 Subject: [PATCH] Question-77, complete the description --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b203a060..099bbce9 100644 --- a/README.md +++ b/README.md @@ -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.