What is the best way to encode/protect a javascript-code?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript">How can I obfuscate JavaScript?</a>  </p>
</blockquote>



<p>I want to "protect" my Javascript code. Are there any good, recommended ways which are very difficult to hack?</p>

<p>I tested some encoder on the Web and sometimes my Javascript code doesn't work after encoding.
Is this normal (cot the encoder is very bad)?... or is my code too bad/buggy?</p>
