Encoding a function in Javascript
<p>I am building a small <code>JavaScript</code> game where the user has to guess a word. The user will be given letters and he will have to combine them into a word. Every time when the user adds/removes a letter, the system checks if the word combined is the answer.</p>

<p>As the game will be mostly presented to users with no programming skills and because my server is not too powerful, I decided to implement word checking on the client side. <em>(otherwise, I would have to run an ajax request for php script which possibly checks the answer from mysql db. that would introduce extra latency and load on the server)</em></p>

<p>Now, just to make sure, I would like to make it a bit more difficult for users with low programming skills to find out the answer variable or see the comparing function.</p>

<p>Is it somehow possible to make a function in <code>JavaScript</code> non-human readable? Or at least making it hard-readable?</p>

<hr>

<p>Just to remind you again, I am not too concerned if the final code will be not secure enough and some people actually crack the <code>compare</code> function and get the answer - I would be happy for their effort.</p>
