I'm having problem to understand why the method push() does't work on Remix using Solidity 0.6.
I have read the documentation about arrays fixed size and dynamic size doc reference
for example in this code:
pragma solidity ^0.6.0;
contract Prova
{
function prova() public{
uint[] memory array;
array.push(4);
}
}
I always get the error: :
TypeError: Member "push" is not available in uint256[] memory outside of storage.
Someone can show me sole example about arrays in solidity. I'm learning. Thanks a lot.