A chocolate bar is a confection in bar form comprising some or all of the following components: cocoa solids, cocoa butter, sugar, milk. The relative presence or absence of these components form the sub classes of dark chocolate, milk chocolate, and white chocolate. In addition to these main ingredients, it may contain emulsifiers such as soy lecithin and flavors such as vanilla. There are many varieties of chocolate; milk chocolate, dark chocolate, white chocolate, peanut butter chocolate, and many more.
A candy bar (called a chocolate bar in Australian English, British English, Canadian English, Indian English,Irish English, New Zealand English and South African English, and sometimes American English) is a form of confectionery usually packaged in a bar or log form, often coated with chocolate, and sized as a snack for one person. But within that term, a wide variety of products exists, ranging from solid chocolate bars to multiple layering or mixtures of ingredients such as nuts, fruit, caramel or fondant containing no chocolate.
Certain brands of chocolate bars and candy bars are sold as being for nutritional supplementation purposes. These bars contain protein and various vitamins while still retaining a sweet taste.
From Wikipedia