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

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’
}

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

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



www.developer.mozilla.org/en-US/docs/Web/JavaScript/Guide