javascript - Return void(0); vs return; interrupting functions -
this question has answer here:
- what “javascript:void(0)” mean? 11 answers
i ran across code interrupts function return void(0);
.
i believe being used return undefined
can done writing return;
.
does return void(0);
serve additional purpose, or 2 different ways interrupt function?
return void(0);
doesn't special. returns undefined
, albeit in silly way. it's case of original developer not understanding javascript fully.
Comments
Post a Comment