Q:

How to make Javascript difficult to understand

I know it's not possible to encrypt JS code, but how can I make it difficult to understand for everyone, like jquery.min.js?

A:

There are multiple terms for this:

Minifying, like jsmin
Obfuscating or uglifying, like uglifyjs
Packing, like packer3
Arguably, compressing, like YUI Compressor
Compiling, like Google's Closure Compiler

That last is slightly different from the first four, because it will apply actual compilation algorithms and heuristics to your code. For instannce, if you have a short function, the Closure compiler might inline it (provided doing so doesn't have side-effects).

