View and Pure Functions

View functions can read from the contract state, but not alter it. Pure functions cannot read contract state or environment variables.