InterviewBuddy
All interview questions

What is a pure function?

Intermediate

Answer

For the same inputs it returns the same result and does not produce observable side effects. Pure functions are easier to test and reason about.