Final answer:
Electrolysis of sodium chloride produces sodium metal and chlorine gas, however, it is necessary to keep them separate for safety reasons. Reacting chlorine with sodium forms sodium chloride, which is safe to eat. This reaction occurs in a chemical reaction.
Step-by-step explanation:
Electrolysis of sodium chloride can produce sodium metal and chlorine gas. However, it is necessary to keep the chlorine and sodium separate during the production of sodium metal because chlorine gas is toxic and sodium is highly reactive. If they were allowed to mix, a dangerous reaction could occur.
To make chlorine safe to eat, it must react with sodium to form sodium chloride, which is the compound we know as table salt. This reaction occurs in a chemical reaction and transforms a deadly gas into something safe to consume.