I think it's worth adding that most use of Javascript involves distributing the source code in any case. In the typical case of using it on a public-facing web site, it's trivial for anybody who visits the web site to get the full source code on any page you serve them.
As such, unless you're in a somewhat unusual position (e.g., use only on a private intranet, by a small number of highly trusted people) it's not likely to make a whole lot of difference either way. The obvious difference is that most of the people here are programmers who are much more likely to respect your wishes about your code.
As already noted, the other obvious point would be to post only very limited pieces of the code here. If you have to post all the code somewhere, do so where all the rights you care about are protected, and link to it from here, with only the most relevant pieces actually included in a post here.