I've not found any question about that already...
I'm doing a game in javascript, and I know there is no other best way to protect the code than executing it server-side...however :
i would like to know what wrapping the whole JS code into anonymous function can bring security wise ?
And what is the best practice/way for using it ?