Sodium and Copper both form positive ions by donating the electrons and thereby forming cations.
Chlorine is present in both compounds so it will form anions.
Copper shows exception in electronic configuration so attain the stability and therefore the electronic configuration is .
The electronic configuration of Sodium is .
The formation of Copper chloride is occur when Copper is mutually bonded with Chlorine ions thus making a covalent bond.
Sodium donates one of its electrons to become stable and that one electron is accepted by the Chlorine atom to become stable, and hence they combine electrostatically.
Therefore, Sodium Chloride is ionic in nature.
Ionic structure of Sodium chloride is represented as:
Covalent structure of Copper chloride is represented as: