The magnitude of the length covered by a moving object is called distance. It has no direction.
Displacement is the shortest distance between two points or the distance between the starting and final positions with respect to time. It has magnitude as well as direction.
Displacement can be zero, but distance cannot.
Distance VS Displacement
Scalar quantities are only expressed as magnitude. E.g.: time, distance, mass, temperature, area, volume
Vector quantities are expressed in magnitude as well as the direction of the object. E.g.: Velocity, displacement, weight, momentum, force, acceleration