A piezoelectric buzzer is a small device, like a speaker, that can be used to make a sound.
These are commonly used as "beepers" in consumer products like microwave ovens, etc.
Insert the buzzer in the breadboard.
Connect a wire from the "+" terminal to pin 5 on the Arduino.
Connect a wire from the other terminal to the - (GND) rail.
Build this sketch:
Or you can download it and open it:
buzzer_melody_button.cdc
Change the melody if you'd like.
Or, do something else with the buzzer.
and the "play tone" function.