The Quit method causes the current script to terminate and return the specified exit code.
WScript.Echo("Hello", "world")
WScript.Quit(1)
WScript.Echo("You should never see this.")Hello worldThe use of the Quit method is demonstrated in this JScript code.