3

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!

zhangyangyu
  • 8,520
  • 2
  • 33
  • 43
user1741274
  • 759
  • 3
  • 13
  • 25

1 Answers1

15

You can do this:

throw "stop execution";
mishik
  • 9,973
  • 9
  • 45
  • 67