Optical zoom is a lens feature that adjusts the distance between the camera sensor and the subject to make the subject appear closer. On the other hand, digital zoom magnifies a specific portion of an image and crops out the portion to make it appear bigger.  Both of them have some drawbacks, such as optical zoom causes lens errors, whereas digital zoom affects image quality.