I'm using Netbeans to add professional-like comments to each function, I write. So I begin each of it with /**
and then I press Enter
to let Netbeans fulfill default comment scheme for following function.
Up until now I've been using this only for PHP language and in this case Netbeans was always adding @returns {type}
part in comment scheme only, if following PHP function really included return
statement. On so called "procedures" (functions that does not return any value) this part was missing.
Today I tried the same thing for Javascript function and Netbeans added @returns {undefined}
part to comment scheme even though following function does not return anything.
This confused me. Does Netbeans suggests this way, that every Javascript function has to return anything? What should I do? Ignore (or delete) that comment scheme part or follow suggestion (if this is suggestion at all) and add return false;
in the end of such function, though it is useless for me?