Also written: bar lines, barline, barlines
The bar lines split the music into bars of the same length: four quarter notes fill a bar of 4/4.
A note can't cross a bar line, so the staff writes it as a note in each bar, joined by a tie.
This example plays G, B, D, G.