
Alexander L. answered 01/02/20
5+ Years Private Tutoring Experience in Organic Chemistry
An ionic compound must be composed of both a metal and a non-metal. In a haloalkane, such as 2-fluorobutane or chloromethane, for example, all bonds in the molecule are covalent since all atoms are non-metals.
Although molecular polarity will exist due to a significant difference in electronegativity along the halogen-carbon bond, the compound will remain covalent due to its non-metal components.
On the other hand, NaCl or KI are excellent examples of ionic compounds but are neither halogens nor alkanes.