Which waves can travel through space?

electromagnetic waves only
mechanical waves only
electromagnetic and mechanical waves
longitudinal and electromagnetic waves