How to terminate the script in JavaScript?
JavaScript equivalent for PHP’s die. BTW it just calls exit() (thanks splattne):
JavaScript equivalent for PHP’s die. BTW it just calls exit() (thanks splattne):
There’s no difference – they are the same. PHP Manual for exit: Note: This language construct is equivalent to die(). PHP Manual for die: This language construct is equivalent to exit().
in PHP Does die() gives anything in return when we use it?