I am going to throw some light on these two
href attribute between the two attributes for empty links.
First of all, I agree that
void (0);returns undefined, which is a primitive value, this forces the browser to stay on the same page, in short,
void(0);is a short script that evaluates to undefined by default.