Work is the dot product of force and displacement. Force and displacement are vectors. Since the dot product returns a scalar, Work is a scalar quantity.
Where is the Work done, is the Force, is the displacement and is the angle between the direction of the force and the direction of the displacement. You can also calculate the dot product by expressing the the Force and displacement in terms of perpendicular unit vectors etc. In which case, the dot project is just
When the force varies with displacement s, the work done is the integral of Force with respect to ds.