potential difference is scalar or vector code example
Example: is work a scalar or vector quantity
Work has only a magnitude but no direction.
The formula for work is written as a dot product of force and displacement.
Therefore, work is a scalar quantity.