How can I exit the JavaScript script much like PHP’s exit
or die
? I know it’s not the best programming practice but I need to.
![](https://itnursery.com/wp-content/uploads/2022/05/apple-touch-icon@2.png)
How can I exit the JavaScript script much like PHP’s exit
or die
? I know it’s not the best programming practice but I need to.