Where there is no difference in their general characteristics, they are usually interchangeable, but I suppose they sometimes have preferential uses. I think of froth as less appealing than foam, generally.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.