Differentiate between width() vs css(‘width’) in jQuery

Differentiate between width() vs css(‘width’) in jQuery.

In JQuery, css(width) returns a value with units intact (i.e., 500px) whereas width() returns a unit-less pixel value (i.e., 500).