Where JPEG excels
Photographs and photo-like images with smooth gradients compress to a fraction of their raw size with no visible loss at quality settings around 80-90%. Universal compatibility is its superpower: airline check-in systems, government portals, ancient printers - everything accepts a JPG.
Where it fails
Text, line art, and hard edges develop visible ringing and blockiness because the compression model assumes photographic content. It has no alpha channel, so transparent areas get flattened onto a background color. And each re-save re-compresses: editing and saving the same JPG repeatedly compounds the damage.