If your e-bike runs out of battery, you can simply continue riding. The motor on the e-bike only assists your pedaling (instead of doing all the work), so you can continue riding as usual without the pedal assist. This is a good thing to know when trying to figure out what is a reasonable commute on an electric bike.