JPEG and JPG are the same format; the shorter extension dates from older systems that allowed only three letters.
JPEG makes photos small by discarding detail the eye barely notices. Quality between 75% and 90% is usually indistinguishable from the original. It does not support transparency.