Solidity Programming Language – Strings, Default Value & Constants
Strings:
String by default store on blockchain.
When we are using a string in the function we need to use memory along with string characters.
But in the case of state variables, we are not required to use memory with string as by default string stored in storage (blockchain).
Constants: & Default Values:
If we don’t want to change the state variable value then we can use “Constants”.