I wanted to hide some business logic and make the variables inaccessible. Maybe I am missing something but if somebody can read the javascript they can also add their own and read my variables. Is there a way to hide this stuff?
I wanted to hide some business logic and make the variables inaccessible. Maybe I
Share
That’s one of the downsides of using a scripting language – if you don’t distribute the source, nobody can run your scripts!
You can run your JS through an obfuscator first, but if anyone really wants to figure out exactly what your code is doing, it won’t be that much work to reverse-engineer, especially since the effects of the code are directly observable in the first place.