Is sodium chloride ionic or covalent in nature?

Flexi Says:
Sodium chloride is an ionic compound. It consists of positive sodium ions and negative chlorine ions (called chloride).
Sodium chloride is an ionic compound. It consists of positive sodium ions and negative chlorine ions (called chloride).