How Do Actors Learn Accents

How Do Actors Learn Accents : Slang considered outdated in one country or city is often still popular in another.