Some possibilities I thought of as to the reason for this thread:
He's confusing compilation with ^ that (It takes away all stuff like whitespace, new lines, and comments I think it may reduce function/variable names to one letter as well, to reduce the filesize and therefore bandwidth usage sending it to clients.)
He confused Java with JavaScript
He didn't know how JavaScript worked and thought it was compiled
He wants a way to hide the source code from clients (You can't, you have to use a server-side language if what you're doing needs to be hidden, or if by "making a program" you mean an actual stand alone, not-website, application, use an actually compiled language)