title: How to terminate the script in JavaScript?
body: <p>How can I exit the JavaScript script much like PHP's <code>exit</code> or <code>die</code>? I know it's not the best programming practice but I need to.</p>