Atoms that gain or lose electrons become electrically charge…