Junk and spam are both types of unwanted or unsolicited messages, but they are not the same. Junk is typically defined as any type of commercial message that is sent to someone who did not ask for it, while spam is specifically defined as a type of online advertising that is sent to large numbers of people who did not ask for it.