Pure functions are functions whose output strictly depends upon the input passed. Impure functions are those whose output doesn’t just depend on the input data passed. In an interview I was asked multiple variants of the pure function and I was unable to answer. So thought of writing a detailed explanation which would help audience.
1 Comment
Sort: