Add silver nitrate solution to the unknown. If a deep yellow precipitate forms, it contains iodide ions. If a pale yellow precipitate forms, it contains bromide ions. To distinguish between NaCl and NaNO3, add silver nitrate to solutions of each. Silver chloride will form a white precipitate with NaCl but no precipitate will form with NaNO3.