A pure function is a function where for an input X, the output will be always Y under any circumstances. The output will never change for the same input for a pure function. So, for pure functions, there are no side effects or dependencies on the runtime environment.