Local Variables
Unlike state variables, local variables are not stored on the blockchain.
How do you declare a local variable?
Local variables are declared inside functions.
Any data assigned to a local variable will be lost after the function finishes execution.
Here is an example
Last updated
Was this helpful?