100 Days Of Solidity, Solidity Variables, Global Variables, Local Variables.
doSomething() public { uint i = 456; uint timestamp = block.timestamp; address sender = msg.sender; // Rest of the function code… } } In the provided smart contract, we have two state variables: `text`, which is of type `string` and initialized with the value “Hello,” and `num`, which is of type