Nucleus does not contain any electrons. Even then the β-particle emission has been described as the ejection of an electron from the nucleus. Comment.
It is believed that electrons are produced as a result of decay of neutrons as indicated below:
The electron produced escapes as a (β-particle leaving the proton behind in the nucleus.