Is Annotation in Javascript? If not, how to switch between debug/productive modes in declarative way?
<p>This is but a curious question. I cannot find any useful links from Google so it might be better to ask the gurus here.</p>

<p>The point is: is there a way to make "annotation" in javascript source code so that all code snippets for testing purpose can be 'filtered out' when project is deployed from test field into the real environment?</p>

<p>I know in Java, C# or some other languages, you can assign an annotation just above the function name, such as :</p>

<pre><code>// it is good to remove the annoying warning messages
@SuppressWarnings("unchecked")
public class Tester extends TestingPackage 
{
    ...
}
</code></pre>

<p>Basically I've got a lot of testing code that prints out something into FireBug console.
I don't wanna manually "comment out" them because the guy that is going to maintain the code might not be aware of all the testing functions, so he/she might just miss one function and the whole thing can be brought down to its knees.</p>

<p>One other thing, we might use a minimizer to "shrink" the source code into "human unreadable" code and boost up performance (just like jQuery.min), so trying to match testing section out of the mess is not possible for plain human eyes in the future.</p>

<p>Any suggestion is much appreciated.</p>
