Na2SO4 is an ionic compound. It is formed by the combination of a metal (Na) with non-metal (S and O) atoms.
It is formed by the complete transference of electrons from two Na+ ions to a sulfate (SO42-) ion.