What is a code that will "end" the script being run?

javascript

#1

example:
else
if ( userAnswer2 === "I'm outta here!"){
confirm("You leave, after all, this is too much for your short, boring, and mundane so called life")
'SCRIPT THAT SHUTS DOWN GAME HERE'
}


#2

As the prompt() Method return's a string Value
the
confirm() Method return's a so-called Boolean Value true if the Ok-Button
is clicked-on.
Read
https://developer.mozilla.org/en-US/docs/Web/API/Window/confirm

Reference

google search
== the Book ==
javascript [your question] site:developer.mozilla.org

== discussions / opinions ==
javascript [your question] site:stackoverflow.com

== guidance ==
www.crockford.com
http://javascript.crockford.com/code.html
http://javascript.crockford.com/survey.html
http://stackoverflow.com/questions/9549780/what-does-this-symbol-mean-in-javascript
https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript
www.developer.mozilla.org/en-US/docs/Web/JavaScript/Guide
http://stackoverflow.com/questions/336859/var-functionname-function-vs-function-functionname?rq=1