How are passports and visas different?

Passports give you permission to leave your country, visas are permission from another country that allows you to visit there.