javascript - Return void(0); vs return; interrupting functions -


this question has answer here:

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

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -