← Back
1 / 3
Which of the following best describes a pure function?
A function that modifies global state
A function that always returns the same output for the same input and has no side effects
A function that makes network requests
A function defined inside a class
Submit