Question: what is the difference between pure function and ordinary function?
Answer: The return value of the pure functions solely depends on its arguments Hence, if you call the pure functions with the same set of arguments, you will always get the same return values. They do not have any side effects like network or database calls. They do not modify the arguments which are passed to them.