Babys brain

In the movie given “the secret life of the babys brain” , would you say the brain has an impact on development or would you say the environment that they child is raised in is the influence? OR,
is it both?