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.

3m read timeFrom javascript.plainenglish.io
Post cover image
1 Comment

Sort: