title: How to make js code invisible?
body: <p>I have a php page, where at the bottom of the page I have some javascript code.</p>
  
  <p>I use php inside the javascript code, like this:</p>
  
  <pre><code>alert ("&lt;?php echo $variable; ?&gt;");
  </code></pre>
  
  <p>If I put this in a separate file, this wont work for some reason.
  Is there anyway to make it work from a separate file without too much difficulty?</p>
  
  <p>Or is there another way I don't know of yet to make javascript code invisible for the users? (for example so they cant see the code by viewing the source code)</p>
  
  <p>Thanks</p>