The supplied names (variable or function) are marked for automatic export to the environment of subsequently executed commands.
When declaring a variable, you can also export it with the x option
export [-fn] [name[=word]] ...
export -p
export returns an exit status of 0 unless: