Hacker News new | ask | show | jobs
by Atotalnoob 765 days ago
JavaScript isn’t obfuscated.

It’s ulgified and minified.

Uglification is the process where function names and other items are shortened into smaller names which reduces the payload size

For example

MyFunction(){

Const myVar = 5

}

Could become

a(){const b= 5}

3 comments

Another common example of this not being true is Google's closure compiler, which does non trival code transforms (inline, peephole ops, ect..)
It can definitely be obfuscated as well as minified.
Not always true, see recapcha's JS for example. It embeds an interpeter and then an obfuscaed program that runs in it.