To expand on that respons, if you have 4 computers, A,B,C,D the switch initially does not know where any of the computers are, so it does this:
Computer A is on port 1
Computer B is on port 2
Computer c is on port 3
Computer D is on port 4
If A tries to send a packet to comoputer D, the packet will arrive on port 1, the switch will make a note that Computer A is on port 1. It then broadcasts to all ports, and when Computer D responds, it sends that packet to port 4 and makes a note that computer D is on port 4. If computer B wants to send a packet to computer C, the switch will record computer B's address, then broadcast to the other ports on the switch until it finds computer C on port 3, when it finds computer C, it will record computer C's address on port 3.
Once the switch has recorded all of these addresses in it's ARP table, it no longer needs to broadcast, and the switch can then operate at it's full potential.