State variables

State variables are values that are permanently stored in contract storage, and are used to maintain the contract's state.

The following is an example of the code:

contract SimpleStorage {
uint storedData; // State variable
//…
}