Culture and socialisation

A teenager adopts a group’s slang and learns when a joke is considered acceptable by spending time with friends. Which source of learning is most directly involved?