Pure and impure functions

Difference between pure and impure functions.


What are pure and impure functions? Pure functions: These are functions which are sure to provide exact result when the same arguments are passed. For having a function as pure function if must not have any external variable, data store call, ajax request or any other global variables. This means that you can be completely