Zet - How do you get the exit code of the last command in bash?

How do you get the exit code of the last command in bash?

Use

echo $?

#bash