Answer AND Explanation:
When sodium atoms bond with one oxygen atom they form a covalent bond. However, there has to be two sodium atoms each with an extra electron that are donated to oxygen. Each of these sodium atoms gives oxygen one electron, allowing the oxygen atom to have a full shell with eight electrons. The sodium atom loses one orbital level since the electrons are donated.
4Na + O2 → 2Na2O