This post (When should I use calldata and when should I use memory?) explains the differences between calldata and memory. However where are function arguments or variables within functions stored if nothing is specified aka what is the default for each?
Examples:
function foo(string _exampleString) // where is the argument stored?
vs
function foo(string memory _exampleString)
or
function foo(string _exampleString) public{
uint256 memory bar = 1;
}
vs
function foo(string _exampleString) public {
uint256 bar = 1; // where is the argument stored?
}