...

/

Solution Review: Pure Function

Solution Review: Pure Function

In this lesson, we will discuss the solutions to the questions in the previous lesson.

Question 1: Solution review #

Explanation #

Pure functions are functions that take inputs and return the output value without affecting any variable outside of their scope. This means they don’t have any side effects on any of the data outside their scope. Hence, Option A is correct.

These functions must return a value, so Option B is incorrect. The return value must depend on the input arguments passed. Hence, Option C is correct.

Since Option B is incorrect, this means ...

Access this course and 1400+ top-rated courses and projects.