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 -

javascript - addthis share facebook and google+ url -

ios - Show keyboard with UITextField in the input accessory view -