Search code examples
javascriptpythonsl4a

Equivalent of sys.exit() of Python in JavaScript


I m using SL4A to execute Python/Javascripts in Android. Can anyone let me know the equivalent of sys.exit() of Python in JavaScript? Thanks!


Solution

  • You can do this:

    throw "stop execution";