when potassium ,a metal, is combined with chlorine , a non metal, an ionic compound compound called as potassium chloride is formed. so potassium chloride is ionic in nature as it is formed by the combination of ions of potassium and chlorine.
an atom of potassium has one extra electron in its outermost shell and can easily lose it to becomes stable while an atom of chlorine lacks one electron in its outermost shell to become stable. potassium atom gives its one extra electron to chlorine and hence an ionic bod is formed between potassium and chlorine due to transfer of an electron.
the reaction is given as
k + cl → kcl