Why electron affinities of Be and Mg are positive?

classifiedelements
cbse

#1

They have fully filled s-orbitals and the additional electron cannot be placed in the much higher energy p-orbitals of valence shell.