What is the best way to hide visible JS functions when parsing HTML? [duplicate]

0

I have some JavaScript functions in my pages that were previously inserted directly into jsp, within the <script> tags. Later I changed them to a .js file where I only import the functions. I would like to know if there is a better way to hide such functions, making it difficult for the user to find them.

    
asked by anonymous 18.03.2016 / 20:40

1 answer

2

You will not be able to hide, however, it can make things difficult, minify your script and exchange explicit names with vowels or symbols, make your code unreadable by a human. I use uglify for this

    
18.03.2016 / 20:49