Which sentence shows the correct use of the dash?
In the early 1800s—before cars existed—all children walked to school.
In the early 1800s before cars existed—all children walked to school.
In the early 1800s—before cars existed all children walked to school.
In the early 1800s—before cars—existed all children walked to school.