Search code examples
javascript

How to make my function return [native code]


When I enter toString on the chrome console the following appears:

function toString() { [native code] }

How can I hide code from my function as well as native functions?


Solution

  • It's hard this is the way browsers work. You can obfuscate the code.

    It will be harder to read but it can be understand if the programmer have enough time.

    You can obfuscate the code here:

    https://www.javascriptobfuscator.com/Javascript-Obfuscator.aspx