No, it doesnโt matter: https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault
This is different from returning false , because when you return, everything else in the function is abandoned.
As stated in the MDC link above:
Calling preventDefault during any stage of the event flow cancels the event, which means that any default action normally taken by the implementation as a result of the event will not occur.
source share