How does a particle with positive charge know that the particle its closing in to also has a positive charge and repels?

So, when charges are the same, there is a repulsion force. Or there is attraction force if both have opposite charges. But how does a positive charge know whether another charge is positive or negative for attraction or repulsion force?
4 answers 4