As, the addition of a proton has a greater effect than the addition of an electron, the size of the atom decreases as you travel from left to right in the periodic table. Because of the strong force of the nucleus, it will be able to receive electrons more easily as its size decreases.
According to the foregoing argument, electronegativity rises as one moves from left to right in the periodic table.
As you progress from top to bottom in a group, the size of the group grows due to the addition of fresh energy shells. Because the force of attraction of the nucleus is no longer able to attract additional electrons as the size of the nucleus rises, electronegativity will drop as the group size decreases.