What is the zoom for in a digital camera?

from all the camara's i have seen where you press to take a picture there is a little "slide button" and all you have to do is push it forward to zoom out and back to zoom in.