Sodium being a metal would want to lose electrons to become more stable.
And flourine being a nonmetal would want to gain an electron to complete its valence shell and become more stable.
They would change their charges by giving up/gaining the electron. (Na+Fl-).
And the resulting bond would be ionic.