Working out

Do you eat dinner before you workout or after? I don’t have money at the time for the gym, so I’m just planning on doing exercises in my living room and walking outside. But I don’t know if it’s better to eat dinner first or after I’m done working out???