Here's why:
* Sodium (Na) loses one electron to become a positively charged ion (Na+).
* Fluorine (F) gains one electron to become a negatively charged ion (F-).
* These opposite charges attract, forming an ionic bond, resulting in the compound sodium fluoride (NaF).