title: Does every Javascript function have to return a value?
body: <p>I'm using Netbeans to add professional-like comments to each function, I write. So I begin each of it with <code>/**</code> and then I press <code>Enter</code> to let Netbeans fulfill default comment scheme for following function.</p>
  
  <p>Up until now I've been using this only for PHP language and in this case Netbeans was always adding <code>@returns {type}</code> part in comment scheme only, if following PHP function really included <code>return</code> statement. On so called "procedures" (functions that does not return any value) this part was missing.</p>
  
  <p>Today I tried the same thing for Javascript function and Netbeans added <code>@returns {undefined}</code> part to comment scheme even though following function does not return anything.</p>
  
  <p>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 <code>return false;</code> in the end of such function, though it is useless for me?</p>