The Peanut also called groundnut is  a legume crop grown mainly for its edible seeds.
It's interesting to think that a peanut is actually a legume- I always forget that. Have you ever had boiled peanuts? They are popular in the Southern us. 
Yes they are very tasty when salted. They are planted mostly in tropics and subtropics regions