View and Pure Functions:
a function marked as pure can change the state, while a view function can only return static calls.
a function marked as view can never access state variables, while pure functions are here to return only one value.
a view function can access state variables, but not write to them. A Pure function cannot modify or read from state.
Submit