Question

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!

Was it helpful?

Solution

You can do this:

throw "stop execution";
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top