This question already has an answer here:
In the Zn/cu cell, once the reaction starts, excess ions begin to accumulate in both the half cells. To maintain the electrical neutrality, a salt bridge is used. how does the salt bridge actually work?
For example, if we use NaCl salt bridge, does ZnCl2 get precipitated in the anodic half cell?