solution:
the compound NACL is an example of ionic compound.
Step-by-step explanation:
Here sodium is an metal and chlorine is nonmetal so in between them checking of valances takes place both elements transfer its outermost valances if thy have similar valances they cancelled out if they have different it will transfer to each other.