What is a pure function?
What is a pure function? Answer A pure function is a function that satisfies these two conditions: Given the same input, the function returns the same output. The function doesn’t cause side effects outside of the function’s scope (i.e. mutate data outside the function or data supplied to the…