100 Days Of Solidity, Solidity Variables, Global Variables, Local Variables.
temporary lifespan and are accessible only within the scope of the function in which they are declared. Local variables are useful for storing intermediate results or data required for computation within a specific function. Let’s take a look at an example: pragma solidity ^0.8.17; contract