1.

What is the side effect of impure function. Give example?

Answer»

Impure Function:

  • The return value of the impure functions does not solely depend on its arguments passed. Hence, if you call the impure functions with the same set of arguments, you might get the different return values. For example, random( ), Date( ).
  • They may modify the arguments which are passed to them.


Discussion

No Comment Found