100 Days Of Solidity, Solidity Variables, Global Variables, Local Variables.
Variables { function doSomething() public { uint i = 456; // Rest of the function code… } } In the above example, the variable `i` is a local variable. It is assigned the value 456 within the function `doSomething()`. Once the execution of the function is complete, the variable `i` is destroyed,