First, there is the sensation of eating the food. This includes what it tastes like (salty, sweet, umami, etc.), what it smells like, and how it feels in your mouth. This last quality — known as “orosensation” — can be particularly important. Food companies will spend millions of dollars to discover the most satisfying level of crunch in a potato chip. Their scientists will test for the perfect amount of fizzle in a soda. These factors all combine to create the sensation that your brain associates with a particular food or drink.
The second factor is the actual macronutrient makeup of the food — the blend of proteins, fats, and carbohydrates that it contains. In the case of junk food, food manufacturers are looking for a perfect combination of salt, sugar, and fat that excites your brain and gets you coming back for more.